Android:CustomListView

by Murtaza FarhatYar | 11 Jan 2019

CustomListView or customizing the listView needs in every project in order to create a ListView which content your won custome data, In this article I want to show you how to customize listView  for your won purpose in your project

Please follow the steps below and practice by your self.

  • Create a new java class called CustomAdpater and extends from ArrayAdapter which the type is String(ArrayAdapter<String>)

CustomeAdapter.java

See also:Dynamic ListView – Android

  • Create a new other java class called ReadContactData to add data to listview
  • ReadContactData.java

  • Create an item layout called chest_item_layout.

chest_item_layout.XML

  • create another Layout called chest_listview_layout

chest_listview_layout.XML

  • The Manifest class

AndroidManifst.XML

The output will be: