Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何找到最合适的位置horizontalScrollView?我setOnTouchListener用来查找 x 和 y 位置。
horizontalScrollView
setOnTouchListener
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);
myGal.getPosition(lastIndex);