May 2015 - Page 2 of 4 - Androhub

Analog and Digital Clock

Android Analog and Digital Clock

In Android, the AnalogClock is a two-handed clock, one for hour indicator and the other for minute indicator. The DigitalClock is look like your normal digital watch on hand, which display hours, minutes and seconds in digital format. Both AnalogClock and DigitalClock are UNABLE to modify the time, if you want to change the time,

Read More
Switch and Toggle Button

Android Switch and ToggleButton

Switch A switch is type of button that can only have two states ON and OFF. You can set the initial state and then the user can change it. To get the current state you can check if the switch is checked or not, in addition to that you can attach a OnCheckedChangeListener to the

Read More
Spinner

Android Spinner

Spinner is a widget similar to a drop-down list for selecting items. Example In this example I will show you how to implement Simple and Custom Spinner in Android. VIDEO DEMO Let’s get start by creating a project in Eclipse IDE. 1. Create a new project in Eclipse by navigating to File ⇒ New Android ⇒ Application

Read More
StackView

Android StackView

StackView helps in arranging items in the form of stacked cards, where the front item can be flipped to bring the item behind it to the front. In addition to images, you can stack objects composed of text and other data, too. Example In this example I will show how to make use of stack images in

Read More
Animations

Android Animation

Animation takes some parameters such as start value , end value, size , time duration , rotation angle e.t.c and perform the required animation on that object. It can be applied to any type of object. So in order to use this , android has provided us a class called Animation. In order to perform

Read More
TextSwitcher

Android TextSwitcher

A TextSwitcher is a specialized ViewSwitcher that contains only children of type TextView. A TextSwitcher is useful to animate a label on screen. Whenever setText(CharSequence) is called, TextSwitcher animates the current text out and animates the new text in. To learn Basic of Android Animation  go to  Android Animation Tutorial. Two types animations are required for 

Read More