Custom ScrollView in andengine

后端 未结 3 733
难免孤独
难免孤独 2021-01-25 08:38

How can I make a custom ScrollView which moves all the sides. And how do I also find the position where I tapped the ScrollView in andengine?

T

3条回答
  •  面向向阳花
    2021-01-25 09:41

    You can able to create scrollview as your preferable manner.

    You have to create one entity as container. In which you have to add as many object as you want. For all these object you have to add touch area enable because you want to select particular item.

    And for scrolling you have to implement scroll detector listener and use scroll detector object. Using this listener you get touch distance from x and y which you can use to move your container.

    These all things are basic overview which you have to do.

提交回复
热议问题