作者harristime (瀚宇)
看板AndroidDev
标题[问题] 如何制作类似 bubble level 的App
时间Tue Apr 12 01:29:04 2016
Hi
小弟是一个 Android 新手
最近在自己学习如何做出一个像是bubble level的 App
像是, 萤幕中有一颗气泡or球, 它会随着 accelerometer 读取的资料移动.
因为牵扯到物体的移动, 所以我认为这是跟 animation 有关
我阅读了一些资料, Android 大致上有3种方法去做 animation
1. Property animation
2. View animation
3. Drawable animation
我看了一些code 跟读了一些文章,但我却不确定哪一种适合这 App
或是根本就不用使用到 animation 就可以做出这种效果?
还麻烦各位高手能提点我一下?
谢谢
--
Sent from my Windows
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 137.44.90.69
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1460395746.A.094.html
1F:推 andy2151: 其实这种随状态在改变的自己做个custom view 直接改会 04/12 13:44
2F:→ andy2151: 比较顺畅且方便 04/12 13:44