Code example for Adapter

Methods: isEmpty

0
        final boolean focusable = !empty || isInFilterMode();
        super.setFocusableInTouchMode(focusable
                && mDesiredFocusableInTouchModeState);
        super.setFocusable(focusable && mDesiredFocusableState);
        if (mEmptyView != null) {
            updateEmptyStatus(adapter == null || adapter.isEmpty());
        } 
    } 
 
    void checkSelectionChanged() { 
        if (true/*mSelectedPosition != mOldSelectedPosition //даем возможность генерить 
                || mSelectedRowId != mOldSelectedRowId*/) { //событие по повторному клику 
            selectionChanged(); 
            mOldSelectedPosition = mSelectedPosition;
            mOldSelectedRowId = mSelectedRowId;
        } 
    } 
 
    @Override 
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        View selectedView = getSelectedView();