Code example for Adapter

Methods: isEmpty

0
 
    public void setEmptyView(View emptyView) {
        mEmptyView = emptyView;
 
        final T adapter = getAdapter();
        final boolean empty = ((adapter == null) || adapter.isEmpty());
        updateEmptyStatus(empty);
    } 
 
    public View getEmptyView() {
        return mEmptyView;
    } 
 
    boolean isInFilterMode() { 
        return false; 
    } 
 
    @Override 
    public void setFocusable(boolean focusable) {
        final T adapter = getAdapter();
        final boolean empty = adapter == null || adapter.getCount() == 0;