diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
| commit | f013e1afd1e68af5e3b868c26a653bbfb39538f8 (patch) | |
| tree | 7ad6c8fd9c7b55f4b4017171dec1cb760bbd26bf /core/java/android/widget/AdapterView.java | |
| parent | e70cfafe580c6f2994c4827cd8a534aabf3eb05c (diff) | |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'core/java/android/widget/AdapterView.java')
| -rw-r--r-- | core/java/android/widget/AdapterView.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/widget/AdapterView.java b/core/java/android/widget/AdapterView.java index e096612836b4..173e80f54f75 100644 --- a/core/java/android/widget/AdapterView.java +++ b/core/java/android/widget/AdapterView.java @@ -140,7 +140,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { * The position within the adapter's data set of the item to select * during the next layout. */ - @ViewDebug.ExportedProperty + @ViewDebug.ExportedProperty int mNextSelectedPosition = INVALID_POSITION; /** @@ -151,7 +151,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { /** * The position within the adapter's data set of the currently selected item. */ - @ViewDebug.ExportedProperty + @ViewDebug.ExportedProperty int mSelectedPosition = INVALID_POSITION; /** @@ -520,6 +520,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { * * @return int Position (starting at 0), or {@link #INVALID_POSITION} if there is nothing selected. */ + @ViewDebug.CapturedViewProperty public int getSelectedItemPosition() { return mNextSelectedPosition; } @@ -528,6 +529,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { * @return The id corresponding to the currently selected item, or {@link #INVALID_ROW_ID} * if nothing is selected. */ + @ViewDebug.CapturedViewProperty public long getSelectedItemId() { return mNextSelectedRowId; } @@ -557,6 +559,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { * AdapterView. (This is the number of data items, which may be * larger than the number of visible view.) */ + @ViewDebug.CapturedViewProperty public int getCount() { return mItemCount; } |
