Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8260495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:06:47+00:00 2026-06-08T03:06:47+00:00

Displaying an (local) image inside WebView is straightforward . But that means it must

  • 0

Displaying an (local) image inside WebView is straightforward.

But that means it must fit within whatever my standard WebView frame has (minus title bar for example).

Before loading any page or URL into WebView I could simply achieve this by doing:

myWebView.setBackgroundColor(0);
myWebView.setBackgroundResource(R.drawable.myImage);

But after some page has been loaded and rendered, the above trick no longer works.

Is there a way to obscure WebView with a full screen image? (until a new HTML page or URL is loaded, of course)

Note: I’m not interested in a webview.loadUrl() solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:06:49+00:00Added an answer on June 8, 2026 at 3:06 am

    You can set your own WebViewClient against the WebView and have it override the following two methods:

    • onPageStarted(WebView view, String url, Bitmap favicon)
    • onPageFinished(WebView view, String url)

    Then, when a page starts loading, toggle your image (which you overlay in e.g. an ImageView) to be visible. When loading the page has finished, set it back to either invisible or gone. This will work every time a page is loaded by the WebView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I have is a static website that should provide displaying a local image
I've got a question regarding displaying local notification reminders inside the application. I think
I have local HTML files that I'm displaying with a UIWebView. Everything is displaying
In a tableview I'm displaying local soccer matches from an NSMutableArray that are planned
i am displaying images inside the list box. If the image URL doesn't have
I'm displaying a webpage (html) kept in my assets folder using a webView .
In my app, I am displaying 4 tabs, each are local content through a
I'm writing a reminders app for iPhone that displays reminders using local notifications. If
I'm writing an app that deals with calendars. In the app I'm displaying a
I have some scientific image data that's coming out of a detector device in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.