如何preserve缩放和位置水平不同页面之间的WebView的Andr​​oid? [英] how to preserve zoom and position level in webview android between different pages?

查看:109
本文介绍了如何preserve缩放和位置水平不同页面之间的WebView的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个使用不同网址的页面与来回箭头按钮,网页视图的应用程序。

I created an app that uses a webview with different url-pages with back and forth arrow buttons.

我的问题是,当用户放大,在web视图的特定区域,然后presses第四或后退按钮时,新的URL装有缩放级别重置为默认值。

My problem is that when the user zooms in, in a particular region of the webview and then presses the forth or back button, the new url is loaded with the zoom level reset to default.

我如何preserve变焦级和web视图的位置,以便将其应用到将被装入新的网址是什么?

How can I preserve the zoom-level and position of the webview, in order to apply it to the new url that will be loaded?

在此先感谢。

推荐答案

您应该看一看这个答案这将帮助您preserve你的的WebView 的缩放级别。

You should take a look at this answer which will help you preserve the zoom level of your WebView.

<一个href=\"http://www.devahead.com/blog/2012/01/$p$pserving-the-state-of-an-android-webview-on-screen-orientation-change/\"相对=nofollow>这篇文章将引导您$ P $的过程pserving的的WebView 罚款状态。

This article will guide you through the process of preserving the WebView's fine states.

合并它们,你会达到预期的方面和行为。

Merging them you'll achieve the desired aspect and behavior.

这篇关于如何preserve缩放和位置水平不同页面之间的WebView的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆