diff options
| author | 2011-02-23 16:05:07 -0800 | |
|---|---|---|
| committer | 2011-02-23 16:05:07 -0800 | |
| commit | 68b6b1c2d1fc7be0da05eb8aeab57945b5fd24e8 (patch) | |
| tree | 037445759d9ca781e1b01f67a4105729dfff102d | |
| parent | ed7894352f8addfe3d0da75cc7fe8bc6fef201dc (diff) | |
A bit more doc for ListAdapter#areAllItemsEnabled().
Change-Id: I339de99f52a8b5a3405d2aabd83a6dc92ca96e98
| -rw-r--r-- | core/java/android/widget/ListAdapter.java | 13 |
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); } |