Adding Listview Children To A Horizontalscrollview
i have a HorizontalScrollView, and i am adding a bunch of ListView as its children. my XML file looks something like the following. for brevity, i will omit some of the attributes.
Solution 1:
If you are looking to implement horizontal paging see the ViewPager
widget in the compatibility library: http://developer.android.com/sdk/compatibility-library.html It works all the way back to devices running Android 1.6. It also allows you to only keep a few pages "live" at any given time, keeping your view hierarchy much simpler and allowing you to work with large data sets.
Solution 2:
You may omit HorizontalScrollView as ListView automatically expand and if there is no room it Scroll automatically. Simply use
<LinearLayout><ListViewandroid:id="@+id/listView1"/></LinearLayout>
Post a Comment for "Adding Listview Children To A Horizontalscrollview"