Android Basics Archives - Page 7 of 11 - Androhub

Rating Bar

Android RatingBar

A Rating Bar is used to show rating in Stars.The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. Example In this example I will show you how to implement RatingBar in Android. VIDEO DEMO Let’s get start by creating a project in Eclipse IDE. 1. Create a

Read More
ProgressBar

Android ProgressBar

What is Android ProgressBar ? Progress bars are used to show progress of a task. For example. When you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user. ProgressBar in Android is a graphical view indicator which shows some progress. It shows a bar

Read More
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