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

  • SEARCH
  • Home
  • 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 8256759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:58:03+00:00 2026-06-08T01:58:03+00:00

I have a Tab with a WebView inside displaying a list of Videos from

  • 0

I have a Tab with a WebView inside displaying a list of Videos from a homepage. Once I click on a Video I setContentView(video) which is a XML holding only a VideoView. I added an onCompletionListener to the VideoView, so when the video is over, i would like to setContentView(webview). My LogCat shows me that the WebView is loading but i never shows up. screen stays black. How do i get the focus back to the WebView?

  • 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-08T01:58:06+00:00Added an answer on June 8, 2026 at 1:58 am

    Instead of using two different layouts and calling setContentView() when you want to switch I think you should put your WebView and VideoView into the same layout, and use View.setVisibility(View.INVISIBLE); and View.setVisibility(View.VISIBLE); to control which one is being shown at the appropriate times.

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

Sidebar

Related Questions

I have a TabActivity with a tab, which shows a list. I'd like to
I have a webview and I want to manually switch to another tab during
I have a tab delimited file which looks like this: CHROM <TAB> POS <TAB>
I have a tab navigation page in my rails app which is shared across
I have tab based application which also have Navigation controllers, When the user in
I have tab delim text file which contains the following columns: Probe A_sig A_Pval
I have Tab Container, and i have a GridView inside that. I need to
I have a WebView that is fed from a background thread via a ServerSocket
I have created an application which has a tab layout , on clicking on
We have a tab-heavy app, which has 5 tabs to use back and forth.

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.