OSDN Git Service

Clarify documentation of AdapterView.OnItemSelectedListener
authorRomain Guy <romainguy@android.com>
Fri, 16 Sep 2011 23:16:36 +0000 (16:16 -0700)
committerRomain Guy <romainguy@android.com>
Fri, 16 Sep 2011 23:16:36 +0000 (16:16 -0700)
Bug #5331587

Change-Id: Ic3d6aca573639d6cae3abb45bfe821f5fd31f1bc

core/java/android/widget/AdapterView.java

index 72db8e8..d9c22c4 100644 (file)
@@ -338,8 +338,10 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
      */
     public interface OnItemSelectedListener {
         /**
-         * Callback method to be invoked when an item in this view has been
-         * selected.
+         * <p>Callback method to be invoked when an item in this view has been
+         * selected. This callback is invoked only when the newly selected
+         * position is different from the previously selected position or if
+         * there was no selected item.</p>
          *
          * Impelmenters can call getItemAtPosition(position) if they need to access the
          * data associated with the selected item.