ViewSwitcher


 

  1. Static ViewSwitcher
  2. Dynamic ViewSwitcher

 

1. Static ViewSwitcher
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

view_swit view_swit2 view_swit3

Download_button

 

2. Dynamic ViewSwitcher

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

 

ScreenShot:

 dy_switcher dy_switcher2 dy_switcher3

Download SourceCode