How do I get the child View of a ViewPager at a given item

后端 未结 5 444
北恋
北恋 2020-12-05 17:54

I\'ll keep the question as short and simple as humanly possible.

View activeView = mViewPager.getChildAt(mViewPager.getCurrentItem());

retu

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 18:33

    Add tag to Viewpager return view.

    Below link will help you : https://stackoverflow.com/a/20186828/1271891

提交回复
热议问题