如何找到horizontalScrollView中最右边的位置
谁能告诉我如何在 horizontalScrollView
中找到最正确的位置?我正在使用 setOnTouchListener 来查找 x 和 y 位置。
Can anyone tell me how to find right most position in horizontalScrollView
? I am using setOnTouchListener
to find x and y position.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用图库小部件,它更有条理。除非您有使用自定义水平滚动视图的特定原因。在图库小部件中,您可以执行以下操作:
myGal.getPosition(lastIndex);
I would suggest using the Gallery widget, it is a lot more organized. Unless you have a specific reason for using a custom horizontal scroll view. Within the Gallery widget you can do something like:
myGal.getPosition(lastIndex);