When using the webview, something that drives me crazy, specially if you are in a place with a very slow internet connection, is not knowing what is happening with the webpage, is it loading? Is it stuck? …. AAAhhhh Nothing is happening. Ok don’t desperate, I am going to show you how to add a progress bar to your Webview layout in you app.
After you know what to do is easy (As always).
To learn how to create and app with a Webview and load an URL please go to the fallowing tutorial:
Let’s start:
You need to add the fallowing code some place in the class where you are calling the webview
and also the fallowing code at the onCreate function:
The whole file, as used in our example :”Using WebView with Multi-touch – Android Tutorial” would looks as fallows:
All together in the .Java file
After you know what to do is easy (As always).
To learn how to create and app with a Webview and load an URL please go to the fallowing tutorial:
Let’s start:
You need to add the fallowing code some place in the class where you are calling the webview
and also the fallowing code at the onCreate function:
The whole file, as used in our example :”Using WebView with Multi-touch – Android Tutorial” would looks as fallows:
All together in the .Java file
No comments:
Post a Comment