Code example for Adapter

Methods: isEmpty

    public final void setEmptyView(final View emptyView) {
        mEmptyView = emptyView;
        final T adapter = getAdapter();
        final boolean empty = ((adapter == null) || adapter.isEmpty());
     * When the current adapter is empty, the AdapterView can display a special view 
     * call the empty view. The empty view is used to provide feedback to the user 
     * that no data is available in this AdapterView. 
     * @return The view to show if the adapter is empty. 
    public final View getEmptyView() {
        return mEmptyView;