我的按钮设置为需要的大小(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