is ListView Empty - Android android.widget

Android examples for android.widget:ListView

Description

is ListView Empty

Demo Code

import android.widget.ListView;

public class Main{

    public static final boolean isEmpty(ListView listView) {
        if (listView == null) {
            return false;
        }/*w  ww  . j ava2  s  .c om*/
        return listView.getCount() == 0;
    }

}

Related Tutorials