Android UI Transition-Androidituts

                 Android UI transitions are used to apply the animation style for making a transition from one page to another.Today we are discussing about the drag & drop components in TRANSITIONS.Lets check it out the following given bellow.

Image Switcher

  • Image Switcher is used for to switch between two images and makes a way to transition with suitable animation.
  • The default code is given bellow.
<ImageSwitcher        android:id=”@+id/imageSwitcher1″        android:layout_width=”wrap_content”        android:layout_height=”wrap_content” >


Text Switcher
  • As like the image switcher,Text Switcher is used for switch or animate one text into another text form.
  • The default code is given bellow.




        android:layout_height=”wrap_content” >


View Animator
  • View animator is used perform animations between two image or text view.
  • The default code is given bellow.


<ViewAnimator        android:id=”@+id/viewAnimator1″        android:layout_width=”match_parent”        android:layout_height=”wrap_content” >


View Flipper
  • View Flipper is used to animate between two or more views.
  • Only one child can be shown at a time.
  • It is possible to flip automatically between each of the child at regular intervals.
  • The default code is shown bellow.
<ViewFlipper        android:id=”@+id/viewFlipper1″        android:layout_width=”match_parent”        android:layout_height=”wrap_content” >


View Switcher
  • A View Switcher is used only to have two child views and  which only shows one at a time.
  • The default code is given bellow


<ViewSwitcher        android:id=”@+id/viewSwitcher1″        android:layout_width=”match_parent”        android:layout_height=”wrap_content” >




In the next we will learn the elements in ADVANCED, CUSTOM & LIBRARY VIEWS