Home » Android » core » ui » Page 4

ui

Android Progress Bar Example

The progress Bar is a very common component in all User Interfaces, when you want to display the progress of a task that is taking up a lot of time, for example a file download. In this tutorial will create a Progress Bar Dialog to let the user know the progress and a status of a simulated file download activity. ...

Read More »

Android Analogclock And Digitalclock Example

In Android you can use android.widget.AnalogClock component to display a two-handed Analog Clock and android.widget.DigitalClock to display a Digital clock in your Application. Both of these components cannot be used to change the time. For that you may use the TimePicker component.               For this tutorial, we will use the following tools in a Windows ...

Read More »

Android Time Picker Example

Android it’s very easy to set the time using the android.widget.TimePicker component. In this tutorial we are going to see how the user can select the hour, and the minute using the android.app.TimePickerDialog which is an easy to use dialog box.                For this tutorial, we will use the following tools in a Windows 64-bit platform: ...

Read More »

Android Date Picker Example

Android it’s very easy to set the date using the android.widget.DatePicker component. In this tutorial we are going to see how the user can change the day, the month and the year using the android.app.DatePickerDialog which is an easy to use dialog box.                   For this tutorial, we will use the following tools in ...

Read More »

Android Spinner (Drop Down List) Example

In Android it’s very easy to create Drop Down Lists using the Spinner component. In this tutorial we are going to see how to set up and display a Spinner. There are two ways you can populate the Drop Down List with options. The first way is by creating a hard coded string-array resource in xml form. The second way is ...

Read More »

Android Rating Bar Example

In Android it’s very easy to accept user rating using a Rating Bar. In this tutorial we are going to see how to set up and display a Rating Bar with Stars. When the user slides over the  bar, the rating goes up or down by one Star and the selected/deselected Stars change color automatically as does the value of the rating.  ...

Read More »

Android ToggleButton Example

Sometimes you may want the user to select whether he wants a specific action or operation of your Android Application to be switched on or off. In Android, this is very easy using the ToggleButton component. A ToggleButton has simply two states : ON or OFF. In this tutorial we are going to see how to set up and display ToggleButtons ...

Read More »

Android Radio Buttons Example

One of the easiest and most common ways to accept user input in an Android Application is the Radio Button component. Usually, we want radio buttons to be in groups, representing a set of options. In a group, when a radio button is selected all the other options in this group are automatically deselected. But you can also choose to have interdependent radio buttons in your application, ...

Read More »

Android Checkbox Example

One of the easiest and most common ways to accept user input in an Android Application is the Checkbox component. In this tutorial we are going to see how to set up and display a checkbox list with some options for the user. Furthermore, we are going to use a button that when it’s pressed, a message will be displayed reflecting the ...

Read More »

Android Password Field Example

In this tutorial we will see how you can use a normal EditText component in order to take a password as an input. Additionally we’ll see how to create a custom Label with some text in it, as well as a simple Button. When the user press the button, the password will be displayed in a toast message.     ...

Read More »