Shishir wrote:
> Hi,
>
> What i want is when first time application runs then it should show
> only image in the full screen and one progress bar.
> And in the background there should be a url like http://www.google.com
> should be loaded in WebView. Once the url loads fully then my first
> screen which contains progress bar and image should move away and new
> screen with loaded url comes up.
>
> Is it possible to load the url in the webview as a background and once
> loaded then only webview should appear.
Step #1: Make the WebView and your while-loading stuff ("image in the
full screen and one progress bar") be peers in a FrameLayout.
Step #2: Make the WebView initially have visibility of GONE.
Step #3: Register a WebViewClient subclass with the WebView.
Step #4: In onPageFinished() in the WebViewClient, make the
while-loading stuff have visibility of GONE and make the WebView have
visibility of VISIBLE.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
_The Busy Coder's Guide to *Advanced* Android Development_
Version 0.9 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---