Explain in detail the solution to the conflict between scrollpane and actor events in Android libgdx
•
Android
Explain in detail the solution to the conflict between scrollpane and actor events in Android libgdx
During the use of libgdx, the scrollpane widget is often used to achieve the sliding effect, as shown below:
However, if you want to add some extensions to the above effects, for example, the actor in scrollpane can be moved from scrollpane and added to stage, you need to add additional logic
The specific code reference is as follows:
The results are as follows:
If you have any questions, please leave a message or go to the community of this site for exchange and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!
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
二维码