Есть компонент ListView
. Он развернут на весь экран. Но внизу экрана надо разместить кнопки так, чтобы ListView
ее не перекрывал. Что надо поменять в разметке?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ListView
android:id="@+id/lvBaseCoord"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ListView>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/btOk"
android:text="Ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
/>
<Button
android:id="@+id/btCancel"
android:text="Отмена"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
/>
</LinearLayout>
И еще, можно ли у ListView
показать скроллинг справа?