Android-需要数字翻转动画 [英] Android - need a number flip animation
问题描述
我正在开发一个Android应用程序来读取电表".用户输入计数器-应用程序计算消耗量并将其发送到服务器.
计数器的表示应该看起来像旧的电表 旧电表
我已经将计数器编号集成为图像.我将获得一个动画,如果用户输入数字(键盘),则相关部分将开始旋转到正确的数字位置.
例如:用户在第一个数字输入数字5,然后将数字从0-5旋转.动画数字会翻转到正确的位置.我怎样才能做到这一点?任何的想法? 谢谢你!
有一个我为自定义应用程序创建的自定义视图.最初,我还尝试搜索这种视图,但未找到任何视图.因此创建了我自己的一个.
您可以在此处查看代码: https://github.com/Vinayrraj/Android-FlipDigitView
该视频还可以为您提供帮助: http://youtu.be/d6-M2nN2Gzg >
I'm developing an Android application to read "electric meters". The user enters the counter - the application calculates the consumption and sends it to a server.
The representation of the counter should look like a old electricity meters old electricity meter
I've already integrated the counter-numbers as images. I will have an animation that if the user enters a number (keyboard) then the relevant section begins to rotate to the correct number position.
For example: The user enters the number 5 for the first digit, then rotate the digit from 0-5. The animated numbers flip to the correct position. How can I do this? Any idea? thank u!!!
There is a custom view which I've created for a custom application. Initially, i also tried searching for this type of view but couldn't found any. So created one of my own.
You can see the code here: https://github.com/Vinayrraj/Android-FlipDigitView
Also this video might help you: http://youtu.be/d6-M2nN2Gzg
这篇关于Android-需要数字翻转动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!