/** * @return True if this adapter doesn't contain any data. This is used to determine * whether the empty view should be displayed. A typical implementation will return * getCount() == 0 but since getCount() includes the headers and footers, specialized * adapters might want a different behavior. */ @Override public boolean isEmpty() { return (mAdapter == null || mAdapter.isEmpty()); }
@Override public boolean isEmpty() { return (mAdapter == null || mAdapter.isEmpty()); }
/** * @return true if this adapter doesn't contain any data. This is used to determine * whether the empty view should be displayed. A typical implementation will return * getCount() == 0 but since getCount() includes the headers and footers, specialized * adapters might want a different behavior. */ @Override public boolean isEmpty() { return (mAdapter == null || mAdapter.isEmpty()); }
public boolean isEmpty() { return mAdapter == null || mAdapter.isEmpty(); }
if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount()
@Override public boolean isEmpty() { return mAdapter.isEmpty(); }
@Override public boolean onSingleTapUp(MotionEvent e) { // if minimalistic mode is enabled, // and we want to display history on touch if (isMinimalisticModeEnabled() && prefs.getBoolean("history-onclick", false)) { // and we're currently in minimalistic mode with no results, // and we're not looking at the app list if ((mainActivity.isViewingSearchResults()) && (mainActivity.searchEditText.getText().toString().isEmpty())) { if ((mainActivity.list.getAdapter() == null) || (mainActivity.list.getAdapter().isEmpty())) { mainActivity.runTask(new HistorySearcher(mainActivity)); } } } if (isMinimalisticModeEnabledForFavorites()) { mainActivity.favoritesBar.setVisibility(View.VISIBLE); } return super.onSingleTapConfirmed(e); }
return originalAdapter.isEmpty();
/** */ @Override public boolean isEmpty() { return mAdapter.isEmpty(); }
/** * @return true if this adapter doesn't contain any data. This is used to determine * whether the empty view should be displayed. A typical implementation will return * getCount() == 0 but since getCount() includes the headers and footers, specialized * adapters might want a different behavior. */ @Override public boolean isEmpty() { return (mAdapter == null || mAdapter.isEmpty()); }
@Override public boolean isEmpty() { return mAdapter.isEmpty(); }
@Override public boolean isEmpty() { return mAdapter.isEmpty(); }
/** * Checks if the edge glow should be used enabled. * The glow is not enabled unless there are more views than can fit on the screen at one time. */ private boolean isEdgeGlowEnabled() { if (mAdapter == null || mAdapter.isEmpty()) return false; // If the maxx is more then zero then the user can scroll, so the edge effects should be shown return mMaxX > 0; }
/** * Checks if the edge glow should be used enabled. * The glow is not enabled unless there are more views than can fit on the screen at one time. */ private boolean isEdgeGlowEnabled() { if (mAdapter == null || mAdapter.isEmpty()) return false; // If the maxx is more then zero then the user can scroll, so the edge effects should be shown return mMaxX > 0; }
/** */ @Override public boolean isEmpty() { return mAdapter.isEmpty(); }
@Override public boolean isEmpty() { return mAdapter.isEmpty(); }
@Override public boolean isEmpty() { return getWrappedAdapter().isEmpty(); } }
if (!mListViewExtrasEnabled || !getShowViewWhileRefreshing() || null == adapter || adapter.isEmpty()) { super.onRefreshing(doScroll); return;
/** * Sets the view to show if the adapter is empty */ public void setEmptyView(View emptyView) { mEmptyView = emptyView; final ListAdapter adapter = getAdapter(); final boolean empty = ((adapter == null) || adapter.isEmpty()); updateEmptyStatus(empty); }
private void setupChildren() { removeAllViews(); updateEmptyStatus((mAdapter == null) || mAdapter.isEmpty()); if (mAdapter == null) { return; } for (int i = 0; i < mAdapter.getCount(); i++) { View child = mAdapter.getView(i, null, this); if (mAreAllItemsSelectable || mAdapter.isEnabled(i)) { child.setOnClickListener(new InternalOnClickListener(i)); } addViewInLayout(child, -1, child.getLayoutParams(), true); } }