setting max height of listview with initial height is wrap content(it may be empty)

by jalandar » Tue, 13 Jan 2009 20:50:32 GMT


Sponsored Links
 Hello everybody I want set initial height of list view with wrap
content, and later it will be expanded as per data added to specific
limit of height. I used wrap_content for height and android:maxHeight
="100px", but it is not working properly the list grows in height
beyond the maxHeight as the list item added.
Is there any other solution.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. TabActivity and GLSurfaceView

Hi,

In my app, i have a TabActivity with 2 tabs.
-Tab1 displays a web page (with WebViewClient)
-Tab2 displays contains a FrameLayout with 2 SurfaceViews :

The first SurfaceView contains the videocapture from the camera.
The second surfaceview is a GLSurfaceView.

The app works fine. I can switch from a tab to another.

But i want optimise my app :
When i switch from Tab2 to Tab1, i want to "pause" my render.
So in the Tab2 activity i reimplement

 @Override
    public void onPause() {
        Log.i(LOGTAG, "onPause");
        super.onPause();
        myGLSurfaceView.onPause();

    }
    @Override
    public void onResume(){
        Log.i(LOGTAG, "onResume");
        super.onResume();
        myGLSurfaceView.onResume();
    }


With this code, my render is stopped, but when i reswitch in the Tab2,
the GLSurfaceView is recreated (onSurfaceCreated(GL10 gl, EGLConfig
config) is called). The surface is re-created but i have never seen a
surfaceDestroyed call.

What's wrong?

-- 

2. What is drawable-hdpi, drawable-ldpi and drawable-mdpi ?

http://developer.android.com/guide/practices/screens_support.html




> 

3. Regarding the surfaceview

4. How to disable pop up blocker in emulator 2.1

5. How to change target build on Android project?

6. Leaked Window changing orientation with SubMenu

7. SOLD WTS : Samsung Galaxy S Second