diff options
author | Andrew Solovay <asolovay@google.com> | 2015-07-08 12:49:21 -0700 |
---|---|---|
committer | Andrew Solovay <asolovay@google.com> | 2015-07-09 13:22:31 -0700 |
commit | 07e7021e062dd3579f662502b15c0682c4672cfe (patch) | |
tree | 4de97c6be743f350507fcaa92ea5f6235587d024 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 1809f534766b2f1d015806f8f37bcefe8337d7b8 (diff) |
docs: Clarified how to find out when a switch is toggled
Per Chris, the existing doc was incorrect: you *can't* check for a
button press and a switch flip the same way. (The button triggers a
click event, but the switch does not.) Chris suggested that we just
remove the reference to onClick and suggest using a listener for
both kinds of buttons (ToggleButton and Switch).
Also pulled one note out of a section where it didn't fit (the bit
about changing a button/switch's state programmatically didn't have
much to do with listening for clicks) and put it at the top, and I
fixed a Javadoc typo for a relevant class that I happened to notice.
See first comment for doc stage location.
bug: 20625504
Change-Id: I9c8975111381e5b169f6a61454ef3a93da635759
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions