Java Code Examples for android.widget.ListView#getFooterViewsCount()

The following examples show how to use android.widget.ListView#getFooterViewsCount() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: NIM_Android_UIKit   File: ListViewUtil.java    License: MIT License 5 votes vote down vote up
public static boolean isLastMessageVisible(ListView messageListView) {
    if (messageListView == null || messageListView.getAdapter() == null) {
        return false;
    }

    if (messageListView.getLastVisiblePosition() >= messageListView.getAdapter().getCount() - 1 - messageListView.getFooterViewsCount()) {
        return true;
    } else {
        return false;
    }
}