Hi, Firstly apologies,as this is a repost.I had posted it in Android beginers group I created a simple List view.Now i want to control the width of the List view. I have the following doubts: 1)How can i get the actual size of the screen used by the application. Any one has example code how to use doLayout,onMeasure. I am quite confused when actually we set the size of the layout. I want to resize my LinearLayout which contains the listview,before actually appending the list elements to it.
Here, is my main.xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/listlayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@+id/android:list" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="0"/> </LinearLayout> </FrameLayout> 2)If linearlayout is resized,then I would like to add another image view to the frameLayout which occupies the remaining width in the screen. I have to go for Absolute layout?? and then have the image view to it and atach bot of them to FramLayouti.e addView( view,layout) ?? Am i in the right path or do I need to change my Layout structure?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---