开发者

How to implement this in Android?

开发者 https://www.devze.com 2023-04-05 22:31 出处:网络
I want to add the value of tile positioning 1,0 with tile 1,1 when on touching the tile at 1,0 and 开发者_StackOverflow中文版display the result at tile 1,1. After the addition operation the tile 1,0 s

I want to add the value of tile positioning 1,0 with tile 1,1 when on touching the tile at 1,0 and 开发者_StackOverflow中文版display the result at tile 1,1. After the addition operation the tile 1,0 should display nothing and the focus should disappear. The focus should reappear again when I touch the value containing tiles. Also I want the tiles to be sliding.what will be the best approach to do this in android. Here is a link for better understand my question the game link

How to implement this in Android?


use GridView for this. Here is tutorial.


Here is a complete example for what you are looking for. Just download the source and try this it might help you out further. Move & Drag Images

0

精彩评论

暂无评论...
验证码 换一张
取 消