Android

Android View Pager stop page refresh on swipe tab.

   int limit = (adapter.getCount() > 1 ? adapter.getCount() - 1 : 1);
   viewPager.setOffscreenPageLimit(limit);

Leave a Reply

Your email address will not be published. Required fields are marked *

July 2020
M T W T F S S
« Apr   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Site Statistics

  • Users online: 0 
  • Visitors today : 0
  • Page views today : 0
  • Total visitors : 3,982
  • Total page view: 4,457