I am using FragmentStatePagerAdapter
. for some reason the getCount() method is beeing called a lot of times before any fragment is even visible... Is it a normal behavior?
Asked
Active
Viewed 721 times
2

roiberg
- 13,629
- 12
- 60
- 91
-
Please post some code – stefana Dec 18 '13 at 12:43
-
My question is in generral: is it normal for a FragmentStatePagerAdapter.getCount() to be called alot of times or is it not? – roiberg Dec 18 '13 at 12:44
-
1Can you please elaborate more? It's being called about 100 times. – roiberg Dec 18 '13 at 13:13
1 Answers
1
yes. Don't worry about it. It seems to be called 10 times more often than getItem()

SoloPilot
- 1,484
- 20
- 17