summaryrefslogtreecommitdiff
path: root/core/java/android/widget/Button.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken javadocs.Jeff Sharkey2017-08-061-9/+3
| | | | | | Bug: 64337634 Test: make -j32 doc-comment-check-docs Change-Id: I20fdd3dcddef09111d35946c41c596c7689effa6
* docs: Update Button JavaDoc commentsJoe Fernandez2017-04-251-49/+110
| | | | | | | | | | | | | | | | | | | | | | | | | - Simplify first-line description - Update top-level code sample - Add caveat about onClick running on main thread - Simplify button style discussion - Add distinct See Also section - Convert future tense to present tense - Add closing paragraph tags - Remove references to push-button - Clean up code introduction sentence - Use present tense - Connect reasoning to user experience - Format threading information as aside - Change future tense to present tense - Add transition statement - Use active language in parameter description - Use cannot instead of can not - Use common parlance name for button - Clean up parameter descriptions Test: Docs change only. Tested with a doc build run. Change-Id: Ie0cd25ed4f8372ba5ec58bdf8b7dfce9100ee3fc
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-1/+1
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Custom pointer icon for standard widgetsVladislav Kaznacheev2016-09-231-0/+10
| | | | | | | | | | | | Implemented custom pointer icon for Button, ImageButton, Spinner and TabWidget. PointerIcon.TYPE_HAND will be shown if the widget is enabled, clickable and has not defined its own pointer icon through setPointerIcon or pointerIcon resource attribute. Bug: 31652293 Change-Id: I2a79786b12d15ea8223726d0949658801b046604
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-2/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* First quick implementation of auto assist data.Dianne Hackborn2015-02-061-11/+2
| | | | | | | | | | | | | | Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
* Fix accessibility delegationAlan Viverette2015-01-071-4/+6
| | | | | | | | | | | | | | | Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
* Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-2/+6
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* docs: fix a bunch of links from javadocs to api guidesScott Main2012-07-241-2/+2
| | | | | | and add some attributes to Spinner and Switch Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-3/+14
| | | | | | | | | | | | | | | 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
* docs: add more info about state list drawable and onclick attribute to ButtonScott Main2010-09-221-12/+48
| | | | | | bug:1062898 Change-Id: I633c38fc20a2ebf894237f86648cc0fdc9488b1a
* docs: add links from widget classes to tutorialsScott Main2010-08-191-0/+3
| | | | Change-Id: I817e885524951853182b0458df4a32dea1614243
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+71
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-71/+0
|
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-221-0/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+69