Here you can find the source of addListFooter(Context context, ListView listView)
public static void addListFooter(Context context, ListView listView)
//package com.java2s; import android.content.Context; import android.widget.ListView; import android.widget.TextView; public class Main { public static void addListFooter(Context context, ListView listView) { int navigationBarSize = context.getResources() .getDimensionPixelSize(/*from w w w.ja v a 2 s. c o m*/ context.getResources() .getIdentifier("navigation_bar_height", "dimen", "android")); TextView padding = new TextView(context); padding.setHeight(navigationBarSize); listView.addFooterView(padding); } }