Вот скриншот моего мобильного приложения. Как я могу настроить кнопку «Управление категориями» в центре внизу, потому что это черное пространство внизу не кажется хорошим.Настройка макета Android
Вот мой файл макета.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/listCategory"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="0.9"
android:background="#FFFFFF"
android:gravity="top" />
<Button
android:id="@+id/btnManageCategory"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:onClick="onButtonClick"
android:text="Manage Category"
android:gravity="center"
/>
</LinearLayout>
ли вы попробовать установить высоту вашего 'LinearLayout' в wrap_content? – ClaireG