【发布时间】:2012-02-27 13:07:03
【问题描述】:
我的按钮根据需要设置为大小(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>
为什么我的按钮不显示?
【问题讨论】:
标签: android android-layout android-widget android-xml android-button