Android develops a method to add click events to rotating pictures
•
Android
This is the code I added inside. Use switch (position) to obtain the current picture and add click events to the corresponding picture,
case 0:,
case 1:
The time code is as follows. When you click the first picture, you want to realize the code in case 0, but you directly report an error and exit. When you click the second picture to realize the code in case 1, there is no problem. I want to know what is wrong.
By the way, these codes are written in fragemnt. When clicking the picture, you need to change from a fragment to an activity for the guidance of the great God
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码