我有一个滚动视图,里面有 5 个图像视图,比如 IMV1,IMV2...IMV5 。现在在滚动时,所有图像视图都会一一显示在设备屏幕中。现在我有一个带 5 个按钮的抽屉,比如 1,2 ..5。
Now take us a scenario,
Currently I am on first imageview. Now when I click on button 5 in the drawer.
I need IMV5 to show on the screen without scrolling.It can be obtained
through smoothScrollBy/scrollTo to y equal to 5*screenHeight. But here it
scrolls through all intermediate imageviews.
Please note,I don't wish to affect scroll feature.For above example,
After I reach IMV5,when I scroll up,it should scroll to IMV4 and so on.
有没有办法获得它。请建议。提前致谢。
PS如果您需要更多说明,请告诉我。