piyush
piyush

Reputation: 11

how to mange tab laoding in tab bar in android

tabbar Activity herei attach view pager code in below, my problem in tab bar ,when i launch this activity tab1 and tab 2 load automatic. i want only tab 1 when i scroll tab 1 to tab tab 2 ,then tab 3 loaded not tab 2 (but i want when we scroll tab1 to tab 2 then only tab 2 load )and when i scroll tab 4 to tab 5 then nothing is loaded(i want when i scroll tab 4 to tab 5 then tab 5 load)same happening when i scroll tab 2 to Tab 1 nothing is loaded but (i want tab tab 1 loaded).and when i scroll Tab 3 to tab 2 then tab 1 is loaded (but i want tab 2 loaded)i am facing this problem before one month to till now. package activity;

Upvotes: 0

Views: 36

Answers (1)

Vivekananda
Vivekananda

Reputation: 56

In your 'getItem()' method ,I think you have reversed tab2<->tab3 try interchanging it

Upvotes: 1

Related Questions