Android Spinner Example

Spinner in Android is just like Dropdown (Select) in HTML. We can have any number of spinner items, only one item will be visible at a time. This is one of the basic android form elements. See flowing Steps : Declare a Spinner in res/layout/activity_main.xml Create an array of spinner items Set the array to ArrayAdapter Assign the ArrayAdapter to […]

person access_time March 9, 2015launch Read More

Custom Grid View in Android

In this tutorial, let’s learn how to use Android GridView to display items in a list of scrollable grids. See flowing Steps : Mention GridView in activity_main.xml. Use BaseAdapter to set the List of data’s on the GridView. Here We can make the Changes by inflating our customized xml in the getView method. Our customized xml will fit everytime […]

person access_time March 8, 2015launch Read More

Custom Listview in Android Example

We already discussed about using ListView in the previous tutorial Android ListView. In this tutorial, let’s learn how to customize list items in ListView to display list of items in a vertical scrollable list. See flowing Steps : Add ListView in activity_main.xml Declare your list of data in ArrayList Create a Custom Adapter class which extends BaseAdapter. Override getView() method and inflate the […]

person access_time March 7, 2015launch Read More

Android ListView Example

In this tutorial, let’s learn how to use Android ListView to display list of items in a vertical scrollable list. See flowing Steps : Add ListView in activity_main.xml Declare your list of data in a String Array or ArrayList Set the data list to ArrayAdapter. Set the ArrayAdapter to the ListView.

person access_time March 6, 2015launch Read More