アニメーションをうまく使って、流れるようなUIを作りましょう。
- アニメーションの組み込み方(例:Button)- アニメーション用のXMLを定義する(xxx.xml)
- Button btn = new Button(this);- Animation anim = AnimationUtils.loadAnimation(this, R.anim.xxx);
- btn.startAnimation(anim);
 
 
アニメーション用XMLの定義
- 指定できるアニメーションの種類は- alpha
- scale
- translate
- rotate
- set
 
- 上記種類をタグで定義(例:1秒間でフェードイン)- <?xml version="1.0" encoding="utf-8"?>
- <alpha xmlns:android="http://schemas.android.com/apk/res/android"
-     android:duration="1000"
-     android:fromAlpha="0.0"
-     android:toAlpha="1.0" />
 
 
- 共通のパラメータは、上記どの種類にも適用できる。