summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/java/android/widget/ListAdapter.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/core/java/android/widget/ListAdapter.java b/core/java/android/widget/ListAdapter.java
index 0fd2e7090b46..d8fd1c987bff 100644
--- a/core/java/android/widget/ListAdapter.java
+++ b/core/java/android/widget/ListAdapter.java
@@ -26,10 +26,14 @@ package android.widget;
public interface ListAdapter extends Adapter {
/**
- * Are all items in this ListAdapter enabled?
- * If yes it means all items are selectable and clickable.
+ * Indicates whether all the items in this adapter are enabled. If the
+ * value returned by this method changes over time, there is no guarantee
+ * it will take effect. If true, it means all items are selectable and
+ * clickable (there is no separator.)
*
- * @return True if all items are enabled
+ * @return True if all items are enabled, false otherwise.
+ *
+ * @see #isEnabled(int)
*/
public boolean areAllItemsEnabled();
@@ -41,7 +45,10 @@ public interface ListAdapter extends Adapter {
* should be thrown in that case for fast failure.
*
* @param position Index of the item
+ *
* @return True if the item is not a separator
+ *
+ * @see #areAllItemsEnabled()
*/
boolean isEnabled(int position);
}