Lines Matching refs:empty
196 * Represents an empty or invalid row id
213 * determining the focusable state (such as whether its empty or the text
385 * or when the adapter becomes empty.
658 * Sets the view to show if the adapter is empty
664 final boolean empty = ((adapter == null) || adapter.isEmpty());
665 updateEmptyStatus(empty);
669 * When the current adapter is empty, the AdapterView can display a special view
670 * call the empty view. The empty view is used to provide feedback to the user
673 * @return The view to show if the adapter is empty.
692 final boolean empty = adapter == null || adapter.getCount() == 0;
699 super.setFocusable(focusable && (!empty || isInFilterMode()));
705 final boolean empty = adapter == null || adapter.getCount() == 0;
712 super.setFocusableInTouchMode(focusable && (!empty || isInFilterMode()));
717 final boolean empty = adapter == null || adapter.getCount() == 0;
718 final boolean focusable = !empty || isInFilterMode();
730 * Update the status of the list based on the empty parameter. If empty is true and
731 * we have an empty view, display it. In all the other cases, make sure that the listview
732 * is VISIBLE and that the empty view is GONE (if it's not null).
734 private void updateEmptyStatus(boolean empty) {
736 empty = false;
739 if (empty) {
744 // If the caller just removed our empty view, make sure the list view is visible