My android learning experience is 39, and my android learning experience is 39.
Make a gradient animation for the gradient penguin image that is the same as the first time you enter qq
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 onAnimationStart (Animation animation) {}@ Override public void Merge (Animation animation) {}@ Override public void onAnimationEnd (Animation animation) {// you can write the event after the animation ends, for example, jump to Intent intent = new Intent (ShouyeActivity. this, ChooseAreaActivity. class); startActivity (intent); ShouyeActivity. this. finish ();}});}}