Android layout 每当我必须滚动时,布局显示问题就会出现
我想在活动屏幕的底部显示两个按钮,但每次我在屏幕上填充使我滚动的视图时,屏幕底部的两个按钮就会消失。当不需要滚动时,按钮显示良好 请帮忙 谢谢 布局代码 ?xml版本=1.0编码=utf-8?>Android layout 每当我必须滚动时,布局显示问题就会出现,android-layout,Android Layout,我想在活动屏幕的底部显示两个按钮,但每次我在屏幕上填充使我滚动的视图时,屏幕底部的两个按钮就会消失。当不需要滚动时,按钮显示良好 请帮忙 谢谢 布局代码 ?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>