method:getCurrentView ( )
return type:View
content:ใช้คืนค่า view ปัจจุบันที่กำลังถูกแสดงอยู่ใน Object ViewAnimator
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
ViewAnimator animator = new ViewAnimator ( this );
Button button_1 = new Button ( this );
button_1.setText ( "Animator 1" );
animator.addView ( button_1 );
Button button_2 = new Button ( this );
button_2.setText ( "Animator 2" );
animator.addView ( button_2 );
View current_view = animator.getCurrentView ( );
setContentView ( animator );
}
}