我的按鈕設置爲需要的大小(wrap_content);它確實有一個標題,但它是不可見的。它應該正好在我的ListView下方,我會認爲:爲什麼我的按鈕不被顯示?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+android:id/listviewContacts"
android:layout_width="match_parent"
android:layout_height="300dip"
android:scrollbars="vertical | horizontal" >
</ListView>
<Button
android:id="@+id/buttonSaveAndBegin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save_settings_and_begin_responding" />
</LinearLayout>
爲什麼我的按鈕不被顯示?
很好的方向。 – 2012-02-06 01:46:33