example code for ViewFlipper.