如何使图片点击,然后翻转到不同的画面? Android的工作室 [英] How to make a picture clickable and then flip to a different picture? Android Studio
问题描述
就像这个网址的图片( http://i.stack.imgur.com/ L18ox.jpg )(这我没有)。因此,基本上的触摸命令翻转图像以不同的画面,如果它匹配到保持翻转,但如果它不匹配翻转回来。
Like in the picture of this url ( http://i.stack.imgur.com/L18ox.jpg) (which I do not own). So basically a touch command to flip the picture to a different picture and if it matches to stay flipped but if it does not match to flip back.
有人可以帮助我。我是新来这个很抱歉,如果我踩到任何人的脚趾。
Can someone please help me out. I am new to this so sorry if I stepped on anyone's toes.
推荐答案
使用 GridView控件
并办理的onClick
事件为网格物品。有 FlipAnimation(GitHub上)可以应用在在的onClick项目
事件。
Use a GridView
and handle the onClick
event for the grid items. There is FlipAnimation (gitHub) which you can apply on the item in the onClick
event.
这篇关于如何使图片点击,然后翻转到不同的画面? Android的工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!