I have some problems when creating a ListActivity. I have a listview and some other widgets and my listview is filled with a custom adapter.
You can see the images of this activity here: http://www.grabup.com/uploads/ecd0d0eeb7b947e98b2e0d6c1be5478f.png?direct Now the problem is. I have a scrollview and all the other views and widgets are placed inside of it. As you can see on the image, I don't see all of my 6 comments (that is the list). When i don't place the scrollview the height of the list is perfect (i have set android:layout_height to wrap_content (to my listview and parent LinearLayout). This is perfect but I have other widgets under the list and when the list reaches the bottom of the screen I can't to scroll to view my other widgets.. How can I fix this? I can set the height of the linearlayout manually but the problem is that the height doesnt has to be the same all the time (it loads the commens from my web service).. It has to fit the height of all the comments (like wrap_content normally does..) Here is a part of the code with the layout and listview.. <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ScrollView01" android:layout_height="wrap_content" android:layout_width="wrap_content" > .. OTHER WIDGETS <LinearLayout android:id="@+id/commentslayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="15px"> <TextView android:text="Comments(0)" android:id="@+id/friendview_comments" android:layout_width="wrap_content" android:layout_height="wrap_content"> </TextView> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:listSelector="@drawable/list_selector_background" android:textFilterEnabled="true" android:divider="@android:color/transparent" ></ListView> <TextView android:id="@+id/android:empty" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Nothing!"/> </LinearLayout> </ScrollView> Thank you, Wouter Goossens --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

