Android UI Design
- Android AutoCompleteTextView Example
android.widget.AutoCompleteTextView
class is used to create auto complete user input component. This article will show you an example about how to use it. - Android Button Selector Example
This example show you how to use android selector drawable as a button background. The button color will change in different button state. - Android Chat App Example Using RecyclerView
This example shows how to use RecyclerView to implement a chat app in android. - Android CheckBox Example
android.widget.CheckBox
class is used to implement CheckBox UI component. This artcile will show you how to use it and how to register event listener on it to process checked change event. - Android Custom ListView With CheckBox Example
Show you how to add checkbox for each listview item. How to implement select all, disselect all, reverse select and delete selected listview items. - Android Custom RatingBar Example
This article include examples about how to use and how to customize rating bar. - Android Custom View And OnTouchListener Example – Move View On Touch Move
This example will show you how to create android custom view component and how to use OnTouchListener to create a color ball follow user finger’s move. - Android Enable / Disable Button By EditText Text Length
Show you how to change button state and text by EditText text length in code. - Android ExpandableListView Example
This example show you how to create and use an ExpandableListView in android. - Android GridView And ImageSwitcher Example
This example show you how to use GirdView and ImageSwitcher to create an image browser with fadein and fadeout image animation. - Android Layer-List Example
This article include some layer-list examples that help you to understand how to use it. - Android ListActivity Example
This article contains examples about how to use ListActivity to create a single ListView activity. - Android ListView Example
This example show you how to use ArrayAdapter, SimpleAdapter and BaseAdapter to render customized ListView items. - Android Multi AutoComplete TextView Example
This example show you how to use MutiAutoCompleteTextView class to implement multiple auto complete input text box. And how to modify it’s attributes both in xml and java code. - Android Progress Bar Example
This article will tell you android progress bar properties and sytles. It will also show you example about how to customize progress bar for your needs. - Android Radio Button Example
This example will show you how to use RadioGroup and RadioButton to implement radio button UI component. - Android RecyclerView Example
This article show you how to use RecyclerView to implement ListView, GridView and StaggeredGridView. - Android Recyclerview Horizontal Scroll Example
Tell you how to add view items programmatically when scroll RecyclerView in horizontal direction. - Android ReplacementSpan Example
This example will show you how to customize span content in spannable string use a sub class of ReplacementSpan class. - Android SeekBar Example
This article will show you how to use and customize seek bar in android. - Android SpannableString Example
This example show you how to use SpannableString to implement some colorful and diverse String effect in TextView. - Android Spinner Example
This article contains examples about how to use android Spinner properties and how to customize Spinner adapters. - Android Splash Screen Example
This article contains two examples about how to implement splash screen for both fix show time and uncertain show time. - Android Shape, Selector Examples
This example show you how to create Shape and Selector drawable object in android. And how to use them as button background. - Android TabHost Example
This article show exampls about how to use android.widget.TabHost to craete a Tab android application. - Android Tab, Shadow Button Example
This article show you how to use android selector, layer-list, shape to implement tab and shadow button effect. - Android ToggleButton Example
This example show you two examples about how to use ToggleButton widget in android app. - Button Listener Key Listener And Browse Url Example
This example will show you how to use android studio to create and register Button OnClickListener and Text Input Box OnKeyListener, it also show you how to open web browser to browse a web page url. - How To Display Html Text In TextView And WebView
Example about how to display html text in TextView and WebView with compare. - How To Improve Android ListView Performance
This article tell you how ListView behaves and how to improve it’s performance with three examples. - How To Set Text Color And Background Color In Android Programmatically
Example about how to change textview colors use source code in android. - Use Java Code To Create Android UI Example
Tell you how to create android UI with java code only without layout xml file.
Android Game
- Android Move Text With Arrow Key Example
An example about how to move text view object in activity screen by keyboard arrow key. - Android SurfaceView Drawing Example
Example about how to use android SurfaceView to draw circle and rectangle which can move after your finger touch on the screen. - Android Draw SurfaceView In Thread Example
Example about how to draw on SurfaceView canvas and post the drawing to main thread UI view in a child thread. - How To Play Gif File Use Android.Graphics.Movie Class
Example about how to use android.graphics.Movie class to display gif image. - Android Canvas And Paint Common Drawing Function Example
Tell you how to use android graphics canvas class’s methods to draw text or shape.