is AdapterView Attach - Android User Interface

Android examples for User Interface:AdapterView

Description

is AdapterView Attach

Demo Code


//package com.java2s;

import android.widget.AbsListView;

public class Main {
    public static boolean isAdapterViewAttach(AbsListView listView) {
        if (listView != null && listView.getChildCount() > 0) {
            if (listView.getChildAt(0).getTop() < 0) {
                return false;
            }//from   w w  w  .ja  va 2 s  . c  om
        }
        return true;
    }
}

Related Tutorials