アニメーション
Viewに対して出来る。
<LinearLayoutもview だった!
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/liner1"
android:orientation="vertical" >
-----------------------------
LinearLayout ln = (LinearLayout) this.findViewById(R.id.liner1);
Animation animation= AnimationUtils.loadAnimation(this,R.anim.edit_motion1);
ln.startAnimation(animation);
----------------------------
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<alpha
android:duration="500"
android:fromAlpha="0.0"
android:toAlpha="1" />
</set
-------------------------------
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXDelta="100%"
android:toXDelta="0%"
android:duration="200"
android:fillAfter="true"
>
</translate>
参考>>> ln.setBackgroundColor(Color.parseColor("#50FF0000"));