【发布时间】:2011-02-02 10:53:37
【问题描述】:
大家好 我的需要是按钮必须显示在底部,所以我的代码为
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="12dip">
<ListView
android:id="@+id/list_multiselectable"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
</ListView>
<LinearLayout android:orientation="horizontal"
android:background="@android:drawable/bottom_bar"
android:paddingLeft="4.0dip" android:paddingTop="5.0dip"
android:paddingRight="4.0dip" android:paddingBottom="1.0dip"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
my buttons code here
</LinearLayout>
</LinearLayout>
但是当列表中的项目较少时(直到列表视图的滚动条未启用),按钮可见,但是当列表中的项目较多时,按钮不可见,虽然我将列表项滚动到最后一行,但在最后一个按钮不显示。我该如何解决。
谢谢!
【问题讨论】:
标签: android android-widget android-layout