如何解决网页视图下方带有标签栏
| 屏幕底部有一个标签栏。 XML文件如下所示:<TabHost android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\"
android:id=\"@android:id/tabhost\"
xmlns:android=\"http://schemas.android.com/apk/res/android\" >
<RelativeLayout
android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\"
android:background=\"@color/background\">
<TabWidget
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:id=\"@android:id/tabs\"
android:layout_alignParentBottom=\"true\" />
<FrameLayout
android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\"
android:id=\"@android:id/tabcontent\" >
</FrameLayout>
</RelativeLayout>
</TabHost>
在其中一个页面上,我有一个webview。 XML档案:
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"
android:orientation=\"vertical\"
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:background=\"@color/background\"
>
<RadioGroup
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:orientation=\"horizontal\"
android:gravity=\"center_horizontal\"
android:id=\"@+id/group1\"
>
<nl.smartcityguide.geurenkleuren.SegmentedControlButton android:checked=\"false\" android:text=\"@string/string1\" android:id=\"@+id/option1\" />
<nl.smartcityguide.geurenkleuren.SegmentedControlButton android:checked=\"false\" android:text=\"@string/string2\" android:id=\"@+id/option2\" />
</RadioGroup>
<WebView
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:id=\"@+id/webview1\"
>
</WebView>
</LinearLayout>
问题是web视图中的网页太长,选项卡消失了。我该如何解决这个问题?
亲切的问候,
约阿希姆
解决方法
我修改了您的代码。现在,它的工作符合预期。
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"
android:orientation=\"vertical\"
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:background=\"@color/background\"
>
<WebView
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:id=\"@+id/webview1\"
android:layout_alignParentBottom=\"true\"
>
</WebView>
<RadioGroup
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:orientation=\"horizontal\"
android:gravity=\"center_horizontal\"
android:id=\"@+id/group1\"
android:layout_above=\"@+id/webview1\"
>
<nl.smartcityguide.geurenkleuren.SegmentedControlButton android:checked=\"false\" android:text=\"@string/string1\" android:id=\"@+id/option1\" />
<nl.smartcityguide.geurenkleuren.SegmentedControlButton android:checked=\"false\" android:text=\"@string/string2\" android:id=\"@+id/option2\" />
</RadioGroup>
如果我的回复对您有帮助,请不要忘记投票。
谢谢
迪帕克
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。