Android ListView Set addListFooter(Context context, ListView listView)

Here you can find the source of addListFooter(Context context, ListView listView)

Description

add List Footer

Declaration

public static void addListFooter(Context context, ListView listView) 

Method Source Code

//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);
    }
}

Related

  1. createMotionEvents( final AbsListView absListView, final float fromY, final float toY)