method:getDisplayedChild ( )
return type:int
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 );
int current_position = animator.getDisplayedChild ( );
setContentView ( animator );
}
}