add ListView Footer View - Android User Interface

Android examples for User Interface:ListView

Description

add ListView Footer View

Demo Code


//package com.java2s;

import android.view.View;
import android.widget.ListView;

public class Main {
    public static void addFooterView(ListView listView, View view) {
        if (listView == null || listView.getFooterViewsCount() != 0
                || view == null) {/*from   w w  w. j a v a  2s  . c o m*/
            return;
        }
        listView.addFooterView(view, null, false);
    }
}

Related Tutorials