2012-07-10 32 views
1

我在應用程序中使用了一些Viewproperty動畫。一旦它在Android 3.0平板電腦上編譯它的工作正常,如果運行在3.0模擬器應用程序崩潰,並在logcat上顯示錯誤。Android:ViewProperty Animator無法在3.0模擬器上工作

代碼:

ImageButton home = (ImageButton)findViewById(R.id.Home); 
home.animate().setDuration(200); 
smmslogo.animate().alpha(1); 

錯誤:

java.lang.NullPointerException 
at android.view.ViewPropertyAnimator.animatePropertyBy 

誰能幫助我?

回答

相關問題