<?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"
style="@style/listbag">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp">
<ListView
android:id="@+id/groupListView"
style="@style/listbag"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="100"
android:listSelector="@drawable/list_selector1"
android:background="@drawable/radius" />
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp">
<Button
android:id="@+id/addfrendstogroupButton"
android:layout_width="fill_parent"
android:layout_height="42dp"
android:text="Create new group"
android:textColor="@color/gray2"
android:background="@drawable/button_indicator"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="1dp"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>
</LinearLayout>
我想設置列表視圖和在屏幕底部的一個按鈕。但是當我填充listView時,按鈕不再出現。我不知道爲什麼。有人可以幫我嗎?按鈕沒有出現在我的佈局
「填充ListView」是什麼意思? – iTurki