How to implement this in Android?
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
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
精彩评论