Search code examples
androidviewflipper

Android, how to add a LinearLayout to a ViewFlipper, programmatically?


How do I add a LinearLayout to a ViewFlipper, programmatically, in Android?


Solution

  • Step #1: Create your LinearLayout

    Step #2: Call addView() on the ViewFlipper, supplying it the LinearLayout