我嘗試將按鈕放置在列表下方,但不顯示按鈕。如何將按鈕放置在列表下方
我使用RelativeLayout。
activity_main.xml中
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/Lista"
>
<ListView
android:id="@+id/listFotMultas"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<Button
android:layout_below="@+id/Lista"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Total Fotomulta"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:background="@drawable/estilo_redondoboton"
/>
</RelativeLayout>