Próbuję utworzyć układ, w którym jest widok tekstowy u góry ekranu i dolny pasek u dołu ekranu. Każdy z tych widoków powinien pozostać na miejscu, a pomiędzy 2 powinien być ListView.Układ Android z ListView między "górnym paskiem" i "dolnym paskiem"
TOPBAR
LISTVIEW (scrollable)
BOTTOM BAR
mój układ (patrz niżej) prawie prace: górne i dolne elementy pozostają stałe i zwoje listview. "Problemem" jest to, że ostatni wiersz mojego ListView pozostaje ukryty za dolnym paskiem.
Jakieś sugestie dotyczące dopasowania układu?
Dzięki!
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<TextView
android:background="@drawable/blackgrad"
android:gravity="center"
android:id="@+id/title"
android:layout_height="50dip"
android:layout_width="fill_parent"
android:text="blah blah"
android:textColor="#ffffff"
android:textSize="18sp"
/>
<ListView
android:background="#ffffff"
android:cacheColorHint="#ffffffff"
android:id="@android:id/list"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
/>
</LinearLayout>
<LinearLayout
android:background="#efefef"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:orientation="horizontal">
<Button
android:layout_height="wrap_content"
android:id="@+id/back"
android:text="Back"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/home"
android:text="Home"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/next"
android:text="Next"
android:layout_width="wrap_content" />
</LinearLayout>
</RelativeLayout>
To nie zadziała. Dolny widok tekstowy będzie obejmował część dolnej części listview – Falmarri
@Falmarri, w moich rękach stopka tego układu nie zasłania w ogóle widoku listy. – user141146
@Falmarri, próbuję go teraz i działa dokładnie tak, jak powinien. Wydaje się, że działa także dla user141146. – glr