简体   繁体   中英

How can i make BuiltInZoom zoomin/out button in webview to align top?

Im trying to align the BuiltInZoom button to align to left or at the top in a webview, by default it appears at the bottom of webview when we scroll the webview .

I have used following code to enable it.

web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);

在此处输入图片说明

Does any one know the solution for it.? ThankQ.

use this in xml to set alignment of controls

android:layout_alignParentTop="true"
android:layout_alignParentRight="true"

or visit this: set Android ZoomButtonsController alignment?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM