2011-03-07 51 views

回答

3

第一步撥打inflate()方法,則設置在返回的視圖的動畫,例如:

View view = ((ViewStub) findViewById(R.id.stub_view)).inflate(); 
Animation animation = AnimationUtils.makeInAnimation(this, true); 
animation.setDuration(300); 
view.startAnimation(animation);