This is android listview customization tutorial.We see how to customize a listview to have grouped headers and footer and display our images and text.

Android Custom ListView with Header and Footer

Section 1 : Model Class

This is our POJO class, our data object.

It represents a single Player object with name and image properties.

package com.tutorials.listviewheaders;

public class Player {

  private String name;
  private int img;

  public Player(String name,int img) {
    // TODO Auto-generated constructor stub

  public String getName() {
    return name;

  public void setName(String name) { = name;

  public int getImg() {
    return img;

  public void setImg(int img) {
    this.img = img;

Section 2 : Adapter Class

This is our Custom Adapter class.

This class derives from android.widget.BaseAdapter class.

Section 3 : MainActivity Class

This is our Main activity class.

This class derives from