History log of /frameworks/base/core/java/android/widget/Spinner.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
af3631314f3d9423a3bd77f9cbaea16207b2aff8 13-Apr-2012 Adam Powell <adamp@google.com> Fix bug 6330745 - internal fix for spinners

Change-Id: I2897ce5f41f9442714053675405296cab5296ac6
/frameworks/base/core/java/android/widget/Spinner.java
dca510e026e3e75759bac84c3860dc84b83a608f 09-Mar-2012 Adam Powell <adamp@google.com> Fix docs

Change-Id: Idea902ec3b6e540972650a070e8d224603a55c94
/frameworks/base/core/java/android/widget/Spinner.java
d9c7be6cc7d18f11731e6d7a1037cc294fde3a4b 09-Mar-2012 Adam Powell <adamp@google.com> Public API for android.widget.Spinner properties

Bug 6104467

Add properties that can be set/retrieved programmatically to match the
XML attributes available.

Also add resource ID versions of Drawable setters for Switch.

Change-Id: I198cfd9701189ab200c3190f61d18c459b7e4591
/frameworks/base/core/java/android/widget/Spinner.java
7507d3d31cb3d0ca190efc9d6b7ead5d6336f8d6 08-Mar-2012 Adam Powell <adamp@google.com> Fix measurement issues with Spinner and ListPopupWindow

Bug 6132826 - make sure that our speculative measurement of list items
uses an accurate width MeasureSpec. This bug would sometimes affect
window sizing when measuring height if content could wrap in the
presence of restricted width.

Change-Id: Ie28573e952cac3dfa2b95e4691758c72f26b8fd9
/frameworks/base/core/java/android/widget/Spinner.java
b08dee9d38fb73715f17183dbc57b7130796b935 02-Mar-2012 Jean-Baptiste Queru <jbq@google.com> am f09c0c7f: am 93920d79: am a66be970: am 11aa4cc3: Merge "Set width of spinner\'s dropdown to fit on device"

* commit 'f09c0c7f31e72611d91b4ac91ce5a9f019b16083':
Set width of spinner's dropdown to fit on device
95148495fc3d33e4ad4dcbdee83317422db94dbf 28-Feb-2012 SeongJae Park <sj38.park@gmail.com> Set width of spinner's dropdown to fit on device

Commit for issue at
http://code.google.com/p/android/issues/detail?id=25916&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=100

[Problem]
Dropdown popup of Spinner become wider than device's width if selected
item's content's width is larger than device's screen.

[Cause]
Spinner just display dropdown popup with measured content's width
although measured content's width is wider than device's screen.

[Solution]
If calculated content's width is wider than device's screen, set width
of spinner's dropdown popup to fit on device.

Change-Id: I3276e5ff745c6ba1437c07fc55645d6b53fef89a
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
/frameworks/base/core/java/android/widget/Spinner.java
c4e57e23f99f4cea6fcca870a95f7f20a6edfaf2 25-Feb-2012 Adam Powell <adamp@google.com> Fix bug 6065890 - Correct callback sequence for action bar tab switching

Keep the callback behavior consistent when action bar tabs collapse
into a spinner.

Change-Id: Ia82e55d816a92b7ec746e1d25486bc9d2c0778f4
/frameworks/base/core/java/android/widget/Spinner.java
8a78fd4d9572dff95432fcc4ba0e87563415b728 17-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes.

AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source
Java class. This is problematic since leads to leaking private classes which would allow an
accessibility service to load classes from other packages. This is strongly undesirable since
not trusted code can be loaded, and hence executed, in the accessibility service. To address
that the class name is set to the most concrete framework class extended by the info/event
source.

bug:5878943

Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
/frameworks/base/core/java/android/widget/Spinner.java
42b7e99b11a5ab1cbc0beebe0b15e46bdf462dff 08-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5544103 - Spinner text doesn't look dimmed when disabled

Pre-Holo spinners had a far more "buttony" look that expressed the
disabled state clearly, but Holo spinners are more subtle. As a result
we want to mark the contained view representing the current item as
disabled when the spinner itself is disabled.

Express this as a private framework style attribute that cannot be
changed at runtime.

Change-Id: Icff2ef2b8a3b1a96cbf00e4c75eda41a4dada7b3
/frameworks/base/core/java/android/widget/Spinner.java
62e2bdecc21819a71c04204f20fc051886fdabd6 16-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5165223 Fix Holo Spinner item/dropdown alignment.

Fix bug 5117565 Spinner popup extends out of screen bounds.

Change-Id: I7fef7bbe98aa26611c498d1fe875e84db57dcda0
/frameworks/base/core/java/android/widget/Spinner.java
8132ba5e2e82d02697ef0570142abb8fc8054a67 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5011067 - align popup lists to their content rather than
window frame by default

Change-Id: I05803b7487248d38981c2adc5422bf01761bc18c
/frameworks/base/core/java/android/widget/Spinner.java
160bb7fa60e8ece654e6ce999b6c16af50ee7357 07-Jul-2011 Adam Powell <adamp@google.com> Action bar layout tweaks

Fix a Spinner issue that reported odd baselines

Fix detection of expandable items for action menus and allocation of cells

Use the right asset for home-as-up in Theme.Holo.Light.SolidActionBar.Inverse

Add TextAppearance.Holo.Widget.ActionBar.Menu as a basis for further
menu item styling

Sync with design for tab/menu text appearance

Change-Id: I32026bbde1cd4e15b6cda30d78d3d48250c84c94
/frameworks/base/core/java/android/widget/Spinner.java
b70c727b2ec470a091e61100abf05841d59bc9a8 10-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3440372 - Spinner measurement issues with new rules

Change-Id: I3633239dc42277eb6447cf7f0907f35f4b45e873
/frameworks/base/core/java/android/widget/Spinner.java
8db7cb1cdfd357730c641bd1d858f3b1495d9a68 08-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3395349 - Treat Spinner dropDownWidth property properly

Change-Id: I15bca2c938e1f9742cc5d47218632a1e636f90ac
/frameworks/base/core/java/android/widget/Spinner.java
19fd164408033eb46a40abd514aa0bf698525e55 08-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3389707 - Spinner: should be able to expand wider than their
collapsed size

Change-Id: Ibd7389d3d7f74b36e9b3e42392cc1f3c0522f20d
/frameworks/base/core/java/android/widget/Spinner.java
6f5e934b96c400f610b1c5ad228cc60cab5d443f 27-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in
talk > Friend Info

Make spinner dropdowns cover the IME if present without being touched
first.

Change-Id: Ie47df1ad684649de73b102e2ecf5528a35301d93
/frameworks/base/core/java/android/widget/Spinner.java
5f83a6017bacb513610df83a36b1f55953e65ad4 20-Jan-2011 Adam Powell <adamp@google.com> Better fix for bug 3112733

Make sure PopupWindows set to clip to the screen and that are anchored
to another view do not clip off the top of the screen.

Change-Id: I6ef9d61982dfda18a4ee7c69128932f5e08aa884
/frameworks/base/core/java/android/widget/Spinner.java
d2766aec6a72eb73264281472a5164a75c6df799 20-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3112733 - Missing TLS encryption option in manual email account setup

Make spinner popups observe global events that should change the
position of the popup.

Change-Id: Ia65204f594a6972b96d4db08c205770e340fcaf9
/frameworks/base/core/java/android/widget/Spinner.java
efd0811a31e79aa1d3ee6fcaf8d79304872fcc5e 17-Jan-2011 Chris Yerga <yerga@google.com> Fix content width calculation for Spinner control.
The width of the dropdown was only taking into account
the width of the items and not background padding.

Change-Id: If27291c96191d4ac1f3e9200c6f6f585a19008c3
/frameworks/base/core/java/android/widget/Spinner.java
1ab74be06cd85ffe12e258df174a46227412f3b2 09-Jan-2011 Adam Powell <adamp@google.com> Remove unnecessary log

Change-Id: I6bb267d7d5f82ae9e1cbe6b022b722ccedc428fd
/frameworks/base/core/java/android/widget/Spinner.java
2ebac69419c5ae9b439178424482ae5ffd3a7e0c 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3334437 - require an adapter to measure dropdown content width

Change-Id: I357a2db66db121816091921e47708140958ad507
/frameworks/base/core/java/android/widget/Spinner.java
a39b987bb761899636ae1e3669d1343499d04ebd 06-Jan-2011 Adam Powell <adamp@google.com> Fix Holo Spinners

Fix bug 3321329 - Spinner dropdown does not match widget width

Fix a bug in ListPopupWindow where setContentWidth was misbehaving

Add gravity setting to Spinner. This controls the positioning of the
selected item view within the widget. Holo default is left, legacy
default is center.

In dropdown mode, Spinners now WRAP_CONTENT width based on a limited
set of dropdown content. This means the dropdown can display a
reasonable amount of its content without clipping, while matching
width with the Spinner widget itself.

Change-Id: Ia17fd5f71526548408f4ad3b16bde536b0d3b207
/frameworks/base/core/java/android/widget/Spinner.java
50f784cf2dc2dea8061153ac3a843f60a9d88781 20-Dec-2010 Adam Powell <adamp@google.com> Measure spinner items for sizing the dropdown view.

Only a limited window of items will be measured around the currently
selected item.

Change-Id: Ie0431948fdd564fa4bbeb82dede9e2abebbaee55
/frameworks/base/core/java/android/widget/Spinner.java
22e92e55576e2c723c320824de08d78326379aeb 10-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3257463 - Yes, we SHOULD put the child in the recycler.

This caused an issue where a LinearLayout measuring for the baseline
could cause the fake view for position 0 to be associated with a
different position in the recycler. It gets used later with the wrong
data; bad times.

Change-Id: If273894d46185a550f4efd9f11ef83e0113f0a3c
/frameworks/base/core/java/android/widget/Spinner.java
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
/frameworks/base/core/java/android/widget/Spinner.java
bdaa34c6709917e228867c12007c35192c107578 15-Oct-2010 Ben Komalo <benkomalo@google.com> Fix Spinners that don't have a hard pixel width set.
getDimensionPixelSize -> getLayoutDimension

Change-Id: Ic126955ad7c7cee3aea423c43fc16da02ec9664e
/frameworks/base/core/java/android/widget/Spinner.java
72536f7240288485cda81b86985ae26b8bef415f 15-Oct-2010 Ben Komalo <benkomalo@google.com> Apply values set in "dropDownWidth" attribute of Spinner styles.

Bug: 3099224
Change-Id: I904f2ef39a65a62076ff82319128a31767a2394b
/frameworks/base/core/java/android/widget/Spinner.java
be4d68e7b238b8ee879de0481e39c40d3f1683b6 09-Oct-2010 Adam Powell <adamp@google.com> Updated styles and metrics.

* Added preliminary ButtonGroup support for buttons that display as a unit.
* Fixed a bug with MenuBuilder that caused old-style icon menus to fail.
* Added support for explicitly setting line height in text.

Change-Id: I1ba65f09dd9e1bc833d247ebe72052a21e3f99f0
/frameworks/base/core/java/android/widget/Spinner.java
fef364f75b00e238d28a81e1168bbfc945ce8d23 03-Sep-2010 Adam Powell <adamp@google.com> Fix bug 2957414 - Add Spinner constructor for selecting dialog/dropdown mode

Change-Id: I7ea2bbf7d387bdd3e0cb59a1b9b24406560680b7
/frameworks/base/core/java/android/widget/Spinner.java
3f10b1c8f841113b93d2dfecdd84a1dfb1008faf 29-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix NPE when Spinner is reused.

Bug: 2958228
Change-Id: I2c5e322b92fd4896361d02a307d0ba0ef3d33029
/frameworks/base/core/java/android/widget/Spinner.java
385a655b8e8bf85024e4f24f1d7f6c2d7d7e900d 21-Aug-2010 Scott Main <smain@google.com> am bb8d314b: am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f'

* commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f':
docs: add links from widget classes to tutorials
41ec65355bd6ded652769725b276d47c54a0d913 20-Aug-2010 Scott Main <smain@google.com> docs: add links from widget classes to tutorials

Change-Id: I817e885524951853182b0458df4a32dea1614243
/frameworks/base/core/java/android/widget/Spinner.java
a408291e22def5755559f42cde913706a6d628c0 05-Jun-2010 Adam Powell <adamp@google.com> Dropdown mode for ActionBar; style and API updates
/frameworks/base/core/java/android/widget/Spinner.java
68464a95991d81872a99eefff86a98dd2bd4c8ed 07-Jun-2010 Adam Powell <adamp@google.com> Fix bug 2747634 - Crash on selecting wifi

Allow Spinner to call setAdapter during superclass construction.

Change-Id: Ia57d231249b28de3809d7ee09a77277eac1553ca
/frameworks/base/core/java/android/widget/Spinner.java
c3fa6304c997ccecf8ed15a4cbb7bd245128f3c3 18-May-2010 Adam Powell <adamp@google.com> Added ListPopupWindow. Refactored AutoCompleteTextView and Spinner
(optionally) to use it. Added associated styles.

ListPopupWindow allows apps to present a popup window of options to
the user that will correctly dodge the IME if needed.

Change-Id: I509c6c45036856daab686a6edeb7a9de1e72eb0a
/frameworks/base/core/java/android/widget/Spinner.java
1f09c8314701c1d09be8e350344c58241905677b 19-Feb-2010 Adam Powell <adamp@google.com> Spinner now allows disabled adapter items
/frameworks/base/core/java/android/widget/Spinner.java
5275d69b04aee3f17f698a21d1395e4ba02ac47c 16-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1844366. Prevents window leak in Spinner.
/frameworks/base/core/java/android/widget/Spinner.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/Spinner.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/Spinner.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/Spinner.java