Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.ListView;

public class Main {
    public static boolean listIsAtBottom(ListView listView) {

        if (listView.getLastVisiblePosition() == listView.getAdapter().getCount() - 1
                && listView.getChildAt(listView.getChildCount() - 1).getBottom() <= listView.getHeight()) {
            return true;

        }

        return false;

    }
}