Android UI,Layout & Material Design Tutorial, Examples And Code

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!

Android UI designing can be done either in XML or programmatically in application. But the Android UI designer mostly prefer XML for defining UI because it separate the presentation from the code and makes easier to visualize, manage, edit and debug the App.

Here our in depth tutorial will teach you Android UI designing step by step starting with XML basic, layout, widgets and attributes with examples. Following it you will learn different UI Design techniques, patterns & principles and finally we will show you lots of examples where we will discuss designing of different Apps from scratch to finish.


Prerequisites For Designing Android UI:

Android Studio And SDK:

Android Studio is the official IDE for developing Android App created by Google. It has a very simple layout editor which support drag and drop for designing UI where one can drag layout, widgets, text fields etc. and drop it on the Virtual mobile screen to design Android UI. It also has the properties option where one can easily fill attribute like color, text etc to give attractive and pretty look to UI. The Studio also has Text option where one can see the XML code of the UI and edit it.

If you are new to it then check our Android Studio guide.

Android Studio Layout Editor


Android Designing Tutorial:

New to Android UI? Begin from here.

XML In Android

Layout in Android:

Layout – Layout are used to define the actual UI(User interface) of our application. It holds all the elements (i.e. views) or the tools that we want to use in our application. For example, TextView, Button and other UI elements.

Types Of Layout And Few Important ViewGroup In Android

  1. Linear Layout
  2. Relative Layout
  3. Table Layout
  4. FrameLayout
  5. Absolute Layout
  6. ListView
  7. GridView

Also Read: Nesting Of Layout in Android

Adapter In Android (Very Important To Learn)

Adapter – Adapter acts as a bridge between UI component and data source that helps us to fill data in UI component. It holds the data and send the data to an Adapter view then view can takes the data from the adapter view and shows the data on different views like as ListView, GridView, Spinner etc.

Different types of Adapter in Android:

  1. BaseAdapter
  2. SimpleAdapter
  3. Custom SimpleAdapter
  4. ArrayAdapter
  5. BaseAdapter

Important Android UI Tutorials

List of all miscellaneous Android UI tutorials

Android UI Tutorial
Topics (Follow the link to read tutorial)Description
ListViewIt helps in displaying the data in the form of a scrollable list.
GridViewIt display items in two dimensional scrolling grid (rows and columns), the grid items are not necessarily predetermined but they are automatically inserted to the layout using a ListAdapter.
ScrollView And HorizontalIt is used to scroll the items in vertical direction and Horizontal ScrollView scroll the items in horizontal direction
SpinnerSpinner provides a quick way to select one value from a set of values. Android spinners are nothing but the drop down-list seen in other programming languages.
Custom SpinnerWhen we want to display a spinner item with image, text etc
TextViewIt display text to the user
EditTextIt provide an input or text field where user can enter something like his name details, phone number etc
ButtonIt is a push button which can be clicked, or pressed by the user to perform an action
ImageViewIt is used to display an image file in application
ImageButtonIt is used to display a normal button with a custom image in a button
CheckBoxIt is a type of two state button either unchecked or checked in Android. We can use it in to take survey in Android app where we will list few options and allow user to choose using CheckBox.
SwitchIt is off/on button which indicate the current state of Switch. It is commonly used in selecting on/off in Sound, Bluetooth, WiFi etc.
RadioButton And RadioGroupIn Android, RadioButton are mainly used together in a RadioGroup. In RadioGroup checking the one radiobutton out of several radio button added in it will automatically unchecked all the others.
RatingBarIt is used to get the rating from the app user.
WebViewIt is a view which is used to display the web pages in application.
AutoCompleteTextViewIt is a view i.e similar to EditText, except that it displays a list of completion suggestions automatically while the user is typing.
MultiAutoCompleteTextViewMultiAutoCompleteTextView is similar to AutoCompleteTextView except that it can hold multiple string words value at single time
ProgressBarIt is used to display the status of work being done like analyzing status of work or downloading a file etc.
TimepickerIt is a widget used for selecting the time of the day in either AM/PM mode or 24 hours mode
DatePickerIt is a widget used to select a date by day, month and year
Calendar ViewIt is used for displaying Calendar and selecting dates
AnalogClock, DigitalClock And TextClockAnalogClock is a two handed clock one for hour indicator and the other for minute indicator and DigitalClock & TextClock both looks like your normal digital watch on hand which displays the hours minutes and seconds in digital format
SeekBarIt is an extension of ProgressBar that adds a draggable thumb, a user can touch the thumb and drag left or right to set the value for current progress
ExpandableListViewIt is a View that shows items in a vertically scrolling two level list
ChronometerIt implements a simple timer
ZoomControlsIt display simple set of controls that is used for zooming and provides callback to register for events
CheckedTextViewIt is an extension of normal TextView that supports the checkable interface and displays it
VideoViewIt is used to display a video file
TabHostIt is a Container for tabbed window view. Whenever we need to enter or display a lot of information in one activity. A simple and effective method is to use tabs in your interface form which is done using TabHost in Android.
SearchViewIt provide search user interface where users can enter a search query and then submit a request to search provider
SlidingDrawerIt is used to hide the content out of the screen and allows the user to drag a handle to bring the content on screen
TextSwitcherIt is used to animate a label(i.e. text) on screen
ViewSwitcherIt is used for switching between views which can hold only two child views for switching
ViewFlipperViewSwitcher can hold only two child views but ViewFlipper can holds two or more child views and show one at a time
ViewStubIt is a zero sized invisible View that can be used to lazily inflate layout resource at runtime
GalleryIt is a view used to show items in a center locked, horizontally scrolling list and user will select a view and then user selected view will be shown in the center of the Horizontal list
CountDownTimerCountDownTimer in Android is used to set a countdown based on interval set by you and it will stop when the time has come in future.
Alert DialogAlert Dialog in an android UI prompts a small window to make decision on mobile screen. Sometimes before making a decision it is required to give an alert to the user without moving to next activity.
ProgressDialogAndroid Progress Dialog is a UI which shows the progress of a task like you want user to wait until the previous lined up task is completed and for that purpose you can use progress dialog.
HTML in AndroidIn Android, many times while designing an application we might be in a situation where we would like to use HTML content and display in our App screen. It may be to display some static content like help, support, FAQ and others pages.

3 thoughts on “Android UI,Layout & Material Design Tutorial, Examples And Code”

  1. very informative.
    i have started to learn android. one suggestion can you divide whole tutorial in a order
    like day 1, day 2 ………
    or block wise block 1 ,block2 , block 3 . . . .
    or you can start a separate tutorial series for paid members ( some minimal charges for members ).

    Deepak

Leave a Reply

Your email address will not be published. Required fields are marked *


Subscribe and get access to the latest android tutorials, freebies, and lots more!

Recent Posts

Android Developer Money eBook
One More Step...

Enter your email and I'll send you a FREE copy of Android Dev Dollaring eBook:
Send Me This eBook >>
We hate SPAM and promise to keep your email address safe.
close-link
One More Step...

Enter your email and I'll send you a FREE copy of Android Dev Dollaring eBook:
Send Me This eBook >>
We hate SPAM and promise to keep your email address safe.
close-link

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!

Join over 5256 Android developers in our community and get access to this free eBook now!
close-link

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!
close-link

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!
close-link

Struggling to learn Android App Development?

Download this FREE eBook to master learning of Android App Development!
close-link