diff options
author | Alan Viverette <alanv@google.com> | 2013-07-24 16:38:37 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-07-24 16:38:37 -0700 |
commit | a089ddecaf2ca5cb56ba62af5ece279fb9cb6c0f (patch) | |
tree | 8eaadf9dc414f91ac32befad0f130eb1745f6083 /core/java/android/widget/Spinner.java | |
parent | 616dfe37f5a1f67f97d151f0fbefa4020ddfdec6 (diff) | |
download | frameworks_base-a089ddecaf2ca5cb56ba62af5ece279fb9cb6c0f.zip frameworks_base-a089ddecaf2ca5cb56ba62af5ece279fb9cb6c0f.tar.gz frameworks_base-a089ddecaf2ca5cb56ba62af5ece279fb9cb6c0f.tar.bz2 |
Update setAdapter() documentation for Spinner
BUG: 9906193
Change-Id: Id21ee957cb72c9452b150a713ed37adb0fa82d30
Diffstat (limited to 'core/java/android/widget/Spinner.java')
-rw-r--r-- | core/java/android/widget/Spinner.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/widget/Spinner.java b/core/java/android/widget/Spinner.java index e3de0b9..789d263 100644 --- a/core/java/android/widget/Spinner.java +++ b/core/java/android/widget/Spinner.java @@ -377,6 +377,18 @@ public class Spinner extends AbsSpinner implements OnClickListener { return mGravity; } + /** + * Sets the Adapter used to provide the data which backs this Spinner. + * <p> + * Note that Spinner overrides {@link Adapter#getViewTypeCount()} on the + * Adapter associated with this view. Calling + * {@link Adapter#getItemViewType(int) getItemViewType(int)} on the object + * returned from {@link #getAdapter()} will always return 0. Calling + * {@link Adapter#getViewTypeCount() getViewTypeCount()} will always return + * 1. + * + * @see AbsSpinner#setAdapter(SpinnerAdapter) + */ @Override public void setAdapter(SpinnerAdapter adapter) { super.setAdapter(adapter); |