• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.custompropertyanimation;
2 
3 import android.animation.ObjectAnimator;
4 import android.app.Activity;
5 import android.os.Bundle;
6 import android.widget.LinearLayout;
7 
8 public class CustomPropertyAnimationActivity extends Activity {
9     /** Called when the activity is first created. */
10     @Override
onCreate(Bundle savedInstanceState)11     public void onCreate(Bundle savedInstanceState) {
12         super.onCreate(savedInstanceState);
13         setContentView(R.layout.main);
14         LinearLayout container = (LinearLayout) findViewById(R.id.container);
15 
16         MyView view = new MyView(this);
17         container.addView(view);
18 
19         ObjectAnimator anim = ObjectAnimator.ofFloat(view, "foo", 1);
20         anim.start();
21     }
22 }