0

I have an Android apk which starts webview and loads an url. Since it usually takes time to load the url, how can I display an image when the apk is loading? The image can be a logo, for example.

Thanks a lot.

user1828513
  • 367
  • 2
  • 7
  • 16
  • Hope this may help you http://stackoverflow.com/questions/4581812/custom-progress-bar-in-android – Aerrow Dec 01 '12 at 02:21

1 Answers1

0

use layout like this

 <RelativeLayout>
    <ImageView> //with log
    <WebView>
    <RelativeLayout>

When page loads Webview came in front of ImageView. or you can also hide it after page load.

Mohsin Naeem
  • 12,542
  • 3
  • 39
  • 53
  • How do i manage this from the activity? – `public void onCreate(Bundle savedInstanceState) { super.loadUrl("http://......") //how to load the image meanwhile? }` – griffon vulture Nov 12 '13 at 07:29