About the same as the first time into QQ the gradient Penguin chart production gradient animation
Package Com.moonweather.app.activity;import Com.moonweather.app.r;import Android.app.activity;import Android.content.intent;import Android.os.bundle;import Android.view.view;import Android.view.animation.alphaanimation;import Android.view.animation.animation;import Android.widget.ImageView; public class Shouyeactivity extends Activity {private ImageView ima;; protected void OnCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate); Setcontentview (R.layout.shouye); Ima= (ImageView) Findviewbyid (R.id.ima); Alphaanimation alphaanimation = new Alphaanimation (0.3f, 1.0f); Alphaanimation.setduration (3*1000); Alphaanimation.setrepeatcount (0); Ima.startanimation (alphaanimation); Alphaanimation.setanimationlistener (New Animation.animationlistener () {@Override public void Onanim Ationstart (Animation Animation) {} @Override public void Onanimationrepeat (an ImationAnimation) {} @Override public void Onanimationend (animation animation) {//This Can write the event after the end of the animation, such as Jump Intent intent=new Intent (shouyeactivity.this,chooseareaactivity.class); StartActivity (Intent); ShouyeActivity.this.finish (); } }); }}
My Android Learning experience 39