I swipe tab 3 tab web view with Facebook I first tab of only text, now If I do come back to swipe hereby re already good first tab to tab him, but if I go back to the first tab is loading web scene again, I can not stop it how
This is my code home.java
public class main activity piece extension (ViewP Ager tab; tabpager adapter tab adapter; interactive actionbars; @ override protected void creatives (bundle saved instenstate) {super.naught (savedinstenstate); setContentView (R.layout.activity_main); tabadapter = new tab pager adapter (getSupportFragmentManager) ); Tab = (Viewpoint) Find VVBID (RidPager); Tab.setOnPageChangeListener (New ViewPager.SimpleOnPageChangeListener) {@Override Public Zero onPageSelected (integer position) {ActionBar = getActionBar (); actionBar.setSelectedNavigationItem (status) ;}}); Ta B.setAdapter (TabAdapter); ActionBar = Received ActionBar (); // Enable actionable tabs on the action bar. Bar.setting navigation mode (Actionbars.NavigenimDDOTABs); ActionBar.TabListener tabListener = new ActionBar.TabListener () {@Override public void onTabReselected (android.app.ActionBar.Tab tab, FragmentTransaction feet) {// TODO Auto-generated method stub} @Override public void onTabSelected (ActionBar.Tab tab , Fragment Transaction Feet) {Tab.setCurrentItem (tab.getPosition ()); } Cancel public void on @Orride to (android.app.ActionBar.Tab tab piece Prasarnsnpadit in feet) {// TODO Auto-generated method stub}}; // add a new tab actionBar.addTab (actionBar.newTab () setText ( "Android") setTabListener (tabListener) ..); actionBar.addTab (actionBar.newTab () setText ( "IOS") setTabListener (tabListener) ..); ActionBar.addTab (actionBar.newTab () setText ("Windows") setTabListener (tabListener) ..); }
Determines how many pages to maintain when they go off the screen.
Try increasing the page limit. For example:
tab .Setoffice Page Limit (3);