做盘似乎旋Android的最佳途径 [英] Android best way to make reel appear to spin

查看:165
本文介绍了做盘似乎旋Android的最佳途径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做一个简单的水果机/老虎机为Android。
我想我怎样才能使卷轴的出现打滑,然后逐渐停止。

I'm making a simple fruit machine / slot machine for Android. I'm thinking how I can make the "reel" appear to spin, then gradually stop.

我想的方法是有一个环绕,然后在顶部随机生成的图像,向下移动屏幕。只有图象的一部分将是可见的。

The way I was thinking was to have a surround, and then have images randomly generated at the top, moving down the screen. Only part of the image would be visible.

有想法任何帮助,也可以怎么做,将是绝对精彩!

Any help with ideas, or how it can be done, would be absolutely fantastic!

我也跟着网上教程在这里:的http://移动。 tutsplus.com/tutorials/android/android-sdk-achieving-movement/

I followed a tutorial online here: http://mobile.tutsplus.com/tutorials/android/android-sdk-achieving-movement/

这显示了我如何扩展面视图,并创建一个类的运动。所有我需要能够做的是找到如何将它放入我的RelativeLayout,与视在手机上正确的尺寸,所以它适合我的布局,而不是目前在它的位置的静态图像。

This showed me how to extend surface view and create a class with movement. All I need to be able to do is find how to put that into my relativelayout, with the correct size depending on the phone, so it fits into my layout instead of the static image which currently is in it's place.

谢谢,

推荐答案

有被称为一个很好的第三方的开源项目的 Android的轮是pretty多做事都参与为您创造一个老虎机。如果你想定制它,它是在Apache许可,所以没有问题存在。

There's a very good 3rd party open source project called Android Wheel that pretty much does everything involved in creating a slot machine for you. And if you want to customise it, it's under an Apache licence, so no issues there.

这篇关于做盘似乎旋Android的最佳途径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆