在我的 android 应用程序中,当我单击所有 (4) 图像动画中的任何一个时,我有四个图像视图。我为所有图像设置了缩小动画。动画完成后,我将开始一项新活动。问题是一旦我单击后退按钮图像(所有 4 个)图像被隐藏。如果我从主屏幕启动应用程序,则会显示图像。请任何人帮助我单击后退按钮后如何显示图像
synopsis.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
//synopsis.setBackgroundResource(R.drawable.aa);
synopsis.startAnimation(animZoomOut);
team.startAnimation(animZoomOut);
music.startAnimation(animZoomOut);
gallery.startAnimation(animZoomOut);
//synopsis.startAnimation(android.R.anim.slide_in_left);
animZoomOut.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationRepeat(Animation animation) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationEnd(Animation animation) {
// TODO Auto-generated method stub
intent = new Intent(HomeActivity.this, Activity_Synopisis.class);
startActivity(intent);
}
});
}
});
<?xml version="1.0" encoding="utf-8"?>
<scale
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="2000"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:toXScale="0"
android:toYScale="0" >
</scale>