diff options
author | Gilles Debunne <debunne@google.com> | 2010-12-14 11:48:15 -0800 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2010-12-14 11:48:15 -0800 |
commit | e1aaf9d76eeb56ba34ba38c921bc0a69548567d7 (patch) | |
tree | 193a9fb334317cee85a97971de4d0b6c7b5ad38f | |
parent | 2bc248b698b17fd333beae828039a8bff7604a9f (diff) | |
download | frameworks_base-e1aaf9d76eeb56ba34ba38c921bc0a69548567d7.zip frameworks_base-e1aaf9d76eeb56ba34ba38c921bc0a69548567d7.tar.gz frameworks_base-e1aaf9d76eeb56ba34ba38c921bc0a69548567d7.tar.bz2 |
Heterogeneous comment for convertView in getView documentation
Change-Id: I28d6b93600d840e9b3e8bf74d0f14d93c4be4fd9
-rw-r--r-- | core/java/android/widget/Adapter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/widget/Adapter.java b/core/java/android/widget/Adapter.java index 9b6c5a4..88b54bf 100644 --- a/core/java/android/widget/Adapter.java +++ b/core/java/android/widget/Adapter.java @@ -17,7 +17,6 @@ package android.widget; import android.database.DataSetObserver; -import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup; @@ -91,6 +90,9 @@ public interface Adapter { * @param convertView The old view to reuse, if possible. Note: You should check that this view * is non-null and of an appropriate type before using. If it is not possible to convert * this view to display the correct data, this method can create a new view. + * Heterogeneous lists can specify their number of view types, so that this View is + * always of the right type (see {@link #getViewTypeCount()} and + * {@link #getItemViewType(int)}). * @param parent The parent that this view will eventually be attached to * @return A View corresponding to the data at the specified position. */ |