Flash Screen with ProgressBar

Here we will create a simple app which displays a flash screen with a ProgressBar for 3 seconds before moving to MainActivity. Step 1: Create a new project with name ProgressBar and package name com.apktutor.progressbar. Select File -> New -> New Project. Fill the forms and click “Finish” button. Step 2: Open res -> layout -> xml (or) main.xml and … Read more

ProgressBar

ProgressBar is a user interface element that indicates the progress of an operation. Progress bar supports two modes to represent progress: determinate, and indeterminate. We should display progress bars to a user in a non-interruptive way in the app’s user interface or in a notification instead of within a dialog. ProgressDialog has been deprecated in … Read more

Convert PDF file to Android App

To create an android app to read a PDF file, follow the steps given below. Step 1: Create a new project with name ‘PDF Book’ and package name com.mypdfreader.readpdf. Select File -> New -> New Project. Fill the forms and click “Finish” button. Step 2: Create an ‘assets’ folder and put the PDF file in it. Let us … Read more

SeekBar example

Android SeekBar is an user interface element that contains a draggable thumb and represents progress of an operation. The user can touch the thumb and drag left or right to set the current progress level. For the SeekBar, bY default, minimum progress is 0 and maximum progress is 100. Step 1: Create a new project with name Seekbar … Read more

Android RatingBar

Android RatingBar Example. Android RatingBar can be used to display a Rating bar containing 5 stars which can be used to display rating or set rating out of 5. Step 1: Create a new project with name ratingbarexample and package name com.myexample.myratingbar. Select File -> New -> New Project. Fill the forms and click “Finish” button. Step 2: Open res -> … Read more

Android ToggleButton

Android ToggleButton Example. Android Toggle Button can be used to display checked/unchecked (On/Off) state on the button. It is beneficial if user have to change the setting between two states. Step 1: Create a new project with name toggleexample and package name com.myexample.mytoggle. Select File -> New -> New Project. Fill the forms and click “Finish” button. Step 2: Open res … Read more

Android Switch Example

A Switch is a two-state toggle switch widget that can select between two options. The user may drag the “thumb” back and forth to choose the selected option, or simply tap to toggle as if it were a checkbox. Step 1: Create a new project with name switchexample and package name com.myexample.myswitch. Select File -> New -> … Read more

RadioButton Example

Radio buttons allow the user to select one option from a set. You should use radio buttons for optional sets that are mutually exclusive. Now we will create an app which displays a question in a TextView and four answer options in four different RadioButton in a RadioGroup. When user selects one of the options … Read more

CheckBox Example

Checkboxes allow the user to select one or more options from a set. Typically, you should present each checkbox option in a vertical list. Now we will create an app which displays a question in a TextView and four answer options in four different Checkboxes. When user selects one of the options and clicks a … Read more

Android ImageView Example

An ImageView is an user interface element for displaying an image. Now let’s create an app which displays an image, and toasts a message “Welcome to the App” when the image is clicked. Step 1: Create a new project with name imageviewexample and package name com.myexample.imageview. Select File -> New -> New Project. Fill the forms and … Read more