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 6793009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:02:58+00:00 2026-05-26T18:02:58+00:00

I am having tab host with three tabs.In the first tab i am doing

  • 0

I am having tab host with three tabs.In the first tab i am doing some bitmap operations on a canvas(bit heavy). Whenever i move on to second or third tab,the activity in the tab goes blank.I have a edit text in tab 1,so when ever the soft keyboard pops up, the rest of tabs are working fine.I think it is because the window gets re-sized when soft keyboard pops up.I think if i am able to re-size or refresh the tab 1 i will be able to see the contents properly in rest of the tabs.Is there any way i can re-size the current window or refresh the window.I tried to set width and height using LayoutParams but it is not resizing actually.Also the tabs starts working properly when i change the orientation probably because the entire tab host is getting re-created.
Is there any one who has faced similar problem?

Any help would be appreciated.

  • 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-05-26T18:02:58+00:00Added an answer on May 26, 2026 at 6:02 pm

    You can automatically refresh the tab content at tab select with the FLAG_ACTIVITY_CLEAR_TOP option. So when you create the tabs just add it to your Tab spec.

    tabHost.addTab(tabHost.newTabSpec("tab1")
                          .setIndicator("myTabName")
                          .setContent(new Intent(this, MyTabContent.class)
                          .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a tab widget with three tabs, I need to set the
I am having an ajax tab control in my page each tab contains some
I am having trouble reloading the tabs in a tab bar and then having
I am having a problem when attempting to host a UserControl as Tab Content
I'm having trouble hiding the contents of some divs in a pseudo-tab set up
I am having some problems with regexp_extract: I am querying on a tab-delimited file,
Actually I am using 2 Tabs.Both of the tab is having different activity.Now when
I'm having some issues getting high resolution tab bar icons displaying correctly for iPhone
I want to create a tab using child tab having intents, so that when
I'm having a problem with the WPF Tab View control that I was hoping

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.