2013-07-30 54 views
0

我實際上正在研究Android應用程序中的動畫,以使其看起來更具吸引力。當我在代碼中調用它時,它不顯示。運行動畫之後,我在代碼中調用的動畫顯示出來,而不是動畫。這裏是我的代碼:Android動畫不顯示

public class MainActivity extends Activity { 

@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_main); 

    ImageView animationTarget = (ImageView) this.findViewById(R.id.testImage); 
    Animation animation = AnimationUtils.loadAnimation(this, R.anim.rotate_around_center_point); 
    animationTarget.startAnimation(animation); 


    Intent start = new Intent(MainActivity.this, ApplicationFunctionalityStarting.class); 
    startActivity(start); 



} 

可能是錯的什麼位置?可能

回答