method:setDisplayedChild ( int whichChild )
return type:void
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 );
animator.setDisplayedChild ( 1 );
setContentView ( animator );
}
}