Web zoom doesn't focus and ovelaps child view

I am trying to look similar to the view in the Inbox app for the gmail android app.

They used RecyclerViewfor several web views. So I added some webviews inside the recycler view. Click events are sent to webview. But I can not increase web browsing.

I previously added some webviews inside scrollview. I used NonLockingScrollViewhere [ https://zi.is/p/browser/k-9/src/com/fsck/k9/view/NonLockingScrollView.java?rev=e4d26b8c752f03dc8a40bcb59a0e601835205083] . I was able to scale correctly, but adjacent child views are not adjusted to fit the increase.

How can we achieve this effect? Any hint would be very helpful. Thanks

+4
source share
1 answer

I assume that you are looking for built-in support for scaling, this will solve the following:

WebView web = (WebView) findViewById(R.id.webview);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);

Good luck. "

0
source

All Articles