aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/customPropAnimTest/src/com/android/custompropertyanimation/CustomPropertyAnimationActivity.java
blob: b1b91b981e3fff7d0c5cef0eac9c161f07ca37c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.android.custompropertyanimation;

import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

public class CustomPropertyAnimationActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        LinearLayout container = (LinearLayout) findViewById(R.id.container);
        
        MyView view = new MyView(this);
        container.addView(view);
        
        ObjectAnimator anim = ObjectAnimator.ofFloat(view, "foo", 1);
        anim.start();
    }
}