Tur*_*ole 1 android webview horizontalscrollview
我在这里做了一个不可取的事情,我知道,但我有一个嵌入在horizontalscrollview中的webview.(我需要比webview提供更多的滚动控件.)
布局如下所示:
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webRel"
android:layout_below="@+id/titlebar"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webZ"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</HorizontalScrollView>
Run Code Online (Sandbox Code Playgroud)
结果如下:

webview没有填满horizontalscrollview.horizontalscrollview正在归档视图,所以我想我可以说webview没有填充视图,即使我已经设置为fill_parent.我真的非常喜欢它,如果有人帮我弄清楚如何让webview在横向上填充横向视图...因为然后我测量高度并使用该测量来对文本进行分页(然后以宽度方式显示在块中这就是我选择horizontalscrollview的原因.)
:d
(或者,有关在webview中进行平滑水平滚动的更简洁方法的建议也会有所帮助.)
| 归档时间: |
|
| 查看次数: |
1812 次 |
| 最近记录: |