Is it possible to populate a the same listview with 4 different sources?
at the moment my design is a textview listview textview listview
what i dont like is the two listview scroll indepently so if the top one is almost empty i have alot of empty space on my screen, if I dont set the top one to a fixed size and it is very full, the bottom one is not shown.
I would like to have one listview/scrollview so everything is arranged nicely indepent on how many entries are in either of the arrays i use to populate my listviews.
can that be done? thanks
this is my xml as mention above
<TextView
android:id="@+id/gamesView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/top_btns"
android:gravity="center"
android:text="@string/gamesView"
android:textColor="#FFFFFF"/>
<ListView
android:id="@+id/gameslist"
android:layout_width="match_parent"
android:layout_height="260dip"
android:layout_below="@id/gamesView" />
<TextView
android:id="@+id/finishedGamesView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/gameslist"
android:gravity="center"
android:text="@string/endedGamesView"
android:textColor="#FFFFFF"/>
<ListView
android:id="@+id/finishedgameslist"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/finishedGamesView" />