Search code examples
androidandroid-tabhost

Android tabhost - update views


I have an Android tabhost with 5 tabs, each of which will be updated in the onTabChanged method. However when I open the activity, the first tab just shows a blank screen. If I click on another tab and then come back to the first tab, it will display properly.

How can I solve this?


Solution

  • I was trying to update Tabs after ViewPager taking blank fragments, Using state adapter i solved my problem