android布局问题,求大神指导
我想在手机屏幕上用listview显示一些列表信息,然后再在屏幕下端添加一个按钮,方便执行删除部分列表信息操作,可是运行结果只能显示listview内容,不能显示按钮,我还特意加了背景方便查看,可是背景设置也不能显示。一下是layout的xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/listlinearLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="10"
android:orientation="horizontal"
android:background="#aa0000" >
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawSelectorOnTop="true"
android:background="#0000aa"
android:scrollbars="vertical" /> <!-- scrollbars 滚动条 -->
</LinearLayout>
<LinearLayout
android:id="@+id/listviewlinearLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:background="#00aa00" >
<button
android:id="@+id/deletebutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="@string/deletebutton" />
</LinearLayout>
</LinearLayout>