A ViewAnimator is used to animate or switch between the screens. To learn Basic of Android Animation go to Android Animation Tutorial. Example In this example i will show how to use ViewAnimator to switch between screen with Animation. VIDEO DEMO Let’s get start by creating a project in Eclipse IDE. 1. Create a new project in Eclipse by
Read MoreViewSwitcher is a sub-class of ViewAnimator, switches between two views, and has a factory from which these views are created. You can either use the factory to create the views, or add them yourself. A ViewSwitcher can only have two child views, of which only one is shown at a time. If you have more than
Read MoreA ImageSwitcheris a specialized ViewSwitcher that contains only children of type ImageView. A ImageSwitcher is useful to animate an Image on screen. ImageSwitcher switches smoothly between two images and thus provides a way of transitioning from one Image to another through appropriate animations. Example In this example i will demonstrate you how to work on ImageSwitcher
Read MoreViewFlipper is an extension class of ViewAnimator, which animates between two or more views that have been added to it. Specfically, only one child is shown at a time. To learn Basic of Android Animation go to Android Animation Tutorial. To get a better understanding, suppose that we have two TextViews that will be used in
Read MoreThis article shows you how to create tab layout using fragments and viewpager. Also you can swipe between tab view as it is the functionality of viewpager which is not possible when using TabHost. Before getting into this tutorial it is suggested to have knowledge on Fragments and ViewPager as these two are main concepts
Read MoreWhat are fragments? A fragment is an independent Android component which can be used by an activity. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts. A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. It is
Read MoreSubscribe to us and get the latest news.
RECENT COMMENTS