最佳答案
我知道通过 Gallery 小部件我可以使用 getSelectedItemposition () ; 检索当前位置,但是看起来 ViewPager 没有这个功能。
我知道我可以设置一个监听器和检索的位置时,页面被切换。但我想要当前视图的位置。