• Custom_Expandable_ListView_Tutorial_-_Android_Example

    Custom Expandable ListView Tutorial - Android Example  Custom Expandable ListView Tutorial - Android Example

    In this example creating a custom Expandable ListView with parent and child rows. parent rows contains texts,images and a checkbox. child rows contains texts,images. Creating custom adapter to create Expandable ListView rows .

     

    Steps :

    1.   Create Model classes for parent rows(Parent.java) and for child rows(Child.java). These classes will use to store parent rows and child rows data.
    2.   Create xml files for parent rows(grouprow.xml) and for child rows(childrow.xml). These classes will use to create GUI for parent rows and child rows.
    3.   Create dummy data in parent and child model objects and Store objects in an ArrayList.
    4.   Create custom Adapter MyExpandableListAdapter class and inflate grouprow.xml file for parent rows() and childrow.xml for child rows. Use Models Parent.java and Child.java to create data for rows.

     

    Read More
  • Show_Phone_Contacts_In_AutoComplete_Suggestions_-_Android_Example

    Show Phone Contacts In AutoComplete Suggestions - Android Example  Show Phone Contacts In AutoComplete Suggestions - Android Example

    In this example reading Phone Contacts and showing these contacts name as Auto suggestions for TextView. After AutoComplete value selection showing selected contact phone number in alert.

    AutoCompleteTextView is an editable text view that shows suggestions automatically while the user is entering characters. The list of suggestions is displayed from which the user can choose an item.

     

    Read More
  • Show_AutoComplete_Suggestions_-_Android_Example

    Show AutoComplete Suggestions - Android Example  Show AutoComplete Suggestions - Android Example

    In this example taking array of strings and showing these strings as Auto suggestions for TextView. After AutoComplete value selection showing selected value in alert.

    AutoCompleteTextView is an editable text view that shows suggestions automatically while the user is entering characters. The list of suggestions is displayed from which the user can choose an item.

     

    Read More
  • Tab_Layout_|_TabBar_-_Android_Example

    Tab Layout | TabBar - Android Example  Tab Layout | TabBar - Android Example

    In this example creating a tab layout to show different screen for each tab.
    Creating three tabs and setting different images and screens for each tab.

     

    - To Create Tab and Tab change listner Extend TabActivity and implements OnTabChangeListener.
    - Create tabhost object to create tabs.
    - Create three tabs name FOOD , GAME , SPORT and set background images.
    - Create three activities add these tabs.
    - Add Tabs to tabhost.

    Read More