Android : Create a List View with custom List View Adapter

Points To Remember


  • You need to create a custom List Adapter to show a model class in the list view.
  • You need to create a xml file to display, how each item of the list will look on the UI.
  • You need to set the Tag in the view, so that your data does not refresh due to scroll.

Create a List View with custom List View Adapter

You need to make

  • Person Model class - show data on UI from this class
  • Person Adapter - create the list view and inflate the view
  • Main Activity - to contain the list view 
The List View will look like as shown in image below




No comments :

Post a Comment