布局显示问题,每当我必须滚动
问题描述:
我想在我的活动屏幕的底部显示两个按钮,但每次我填充屏幕时使我滚动的视图,屏幕底部的两个按钮消失。当没有必要滚动按钮时显示正常。请致电 谢谢。布局显示问题,每当我必须滚动
布局代码 XML版本= “1.0” 编码= “UTF-8”>
<LinearLayout
android:id="@+id/lin_layout_list_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:isScrollContainer="true"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="2px"
android:layout_gravity="bottom"
>
<TableLayout
android:layout_below="@id/lin_layout_list_view"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:layout_width ="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">
<TableRow
android:orientation="horizontal">
<Button android:id="@+id/ws_button_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Back "
/>
<Button android:id="@+id/ws_button_ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Ok "/>
</TableRow>
</TableLayout>
</RelativeLayout>
</LinearLayout>
答
裹与滚动内容沿按钮(例如:-Listview)?在滚动视图中,然后显示内容。
+0
我已经将它包裹在滚动视图中,但是一旦我必须滚动,仍然不会在列表底部显示按钮。这里是我的布局代码。 – jjjdag 2011-05-05 10:25:11
那么,你的布局可能有问题。我想,但你可以自己想出来,你可能想要展示的是你的布局代码,所以我们可以告诉你什么可能是错的,不是? – Nanne 2011-05-02 19:40:02
请分享您的布局,谢谢。 – rekaszeru 2011-05-02 20:47:05