I'll keep the question as short and simple as humanly possible.
View activeView = mViewPager.getChildAt(mViewPager.getCurrentItem());
returns the child view when the current item is 0 and 1. But if the current item is 2 it returns null
. Why is that?
edit: Let me rephrase myself. How do I get the child View of a ViewPager at any given item position?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…