• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Sseeking WebView Help

mjtaryan

Newbie
I am working on an app that will employ WebView to diaply lengthy text files. I'm using WebView because I want the user to be able to zoom to achieve his/her most comfortable text size. However, there are some things I don't know how to achieve with WebView and am seeking assistance. The issues are as follows:

First, I am using Basic4Android as the development environment.

I have come across websites using Dolphin browser and certain office apps that use WebView. These sites and apps allow zooming and when the user zooms the text is redrawn so that it always fits on the screen (there is no need for the user to scroll horizontally in order to read the text. I've played with WebView usisng some sample files, but have been unable to figure out how to achieve this same result. How is this done? Please be as specific as possible, including providing sample code.

Second, at least one app also does the following -- when the user zooms to a certain level and then leaves the file and later returns to it, the last zoom level is retained. I have been unable to figure out how to know the zoom level in order to save it. How is this done? Again, please be specific and include code.

Thanks in advance for your help.

Mike
 
Back
Top Bottom