Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使webview中的内置缩放按钮与顶部对齐?_Android_Android Layout - Fatal编程技术网

Android 如何使webview中的内置缩放按钮与顶部对齐?

Android 如何使webview中的内置缩放按钮与顶部对齐?,android,android-layout,Android,Android Layout,我试图在webview中将内置窗口按钮向左或顶部对齐, 默认情况下,当我们滚动webview时,它显示在webview的底部 我使用了以下代码来启用它 web.getSettings().setBuiltInZoomControls(true); web.getSettings().setSupportZoom(true); 有人知道它的解决办法吗。? ThankQ.在xml中使用此选项设置控件的对齐方式 android:layout_alignParentTop="true" android

我试图在webview中将内置窗口按钮向左或顶部对齐, 默认情况下,当我们滚动webview时,它显示在webview的底部

我使用了以下代码来启用它

web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
有人知道它的解决办法吗。?
ThankQ.

在xml中使用此选项设置控件的对齐方式

android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
或浏览以下网址:

我使用的是默认的ZoomControl,因此,我的布局中没有ZoomControl的代码。那么,我认为使用已发布的api是不可能的。