Android 更新了listview下方空间的代码

Android 更新了listview下方空间的代码,android,Android,但当文本下方的可用空间被删除时,该可用空间位于按钮上方。我的页面不应包含可用空间。 我已经按照你的建议更新了代码,但是我没有发现我的设计有任何变化。 还有空间问题。 你所说的“你已经告诉了”是什么意思。你不能用问题和答案聊天。当你得到一个你想要接受的答案时,没有人会帮你。我还没有完全理解这个问题,你最好提供更详细的描述,可能还有截图。然而,我看到“android:paddingTop=“20dp”将在按钮上方添加一个空格。这就是你想要消除的问题吗? <TextView a

但当文本下方的可用空间被删除时,该可用空间位于按钮上方。我的页面不应包含可用空间。 我已经按照你的建议更新了代码,但是我没有发现我的设计有任何变化。 还有空间问题。


你所说的“你已经告诉了”是什么意思。你不能用问题和答案聊天。当你得到一个你想要接受的答案时,没有人会帮你。我还没有完全理解这个问题,你最好提供更详细的描述,可能还有截图。然而,我看到“android:paddingTop=“20dp”将在按钮上方添加一个空格。这就是你想要消除的问题吗?
<TextView
        android:id="@+id/_tv_title_labels"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="20dp"
        android:layout_marginTop="30dp"
        android:text="Profile Labels :"
        android:textColor="@drawable/black"
        android:textSize="14dp"
        android:textStyle="bold" />                 

    <RelativeLayout 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_below="@+id/_tv_title_labels">

        <LinearLayout
            android:id="@+id/asda"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/TableLayout01"
            android:layout_marginLeft="50dp"
            android:layout_marginRight="40dp">

            <ListView
                android:id="@+id/_lv_labels"
                android:layout_width="wrap_content"
                android:layout_height="380dp"
                android:layout_weight="1"
                android:choiceMode="multipleChoice" >
            </ListView>

        </LinearLayout>

        <TableLayout
            android:id="@+id/TableLayout01"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true" 
            android:layout_alignRight="@+id/asda"
            android:paddingTop="20dp"
            android:gravity="bottom">

            <TableRow
                android:id="@+id/TableRow01"
                android:gravity="bottom" >

                <Button
                    android:id="@+id/_btn_scannewitem"
                    android:layout_width="90dp"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="2dp"
                    android:text="Scan New Item" />

                <Button
                    android:id="@+id/_btn_saveNewItem"
                    android:layout_width="90dp"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="2dp"
                    android:text="Save Your Item"
                    android:visibility="gone" />

                <Button
                    android:id="@+id/_btn_changeprofile"
                    android:layout_width="80dp"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="2dp"
                    android:text="Change Profile" />
            </TableRow>
        </TableLayout>
    </RelativeLayout>