summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/24/changes
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2017-01-24 16:35:52 -0800
committerEvan Rosky <erosky@google.com>2017-03-02 16:10:44 -0800
commit37df2dbab124452e04bf14784df9ab5c2f64e434 (patch)
tree434d2705a6ba109016da47b3de24feded77b1a36 /docs/html/sdk/api_diff/24/changes
parentfbad632f1237c0f73f9f8e9205dda33ccbe15ca0 (diff)
Changing initial and default focus behavior
This changes initial focus behavior such that by default, nothing is focused; and, if nothing is focused, the first focus navigation will send focus to the default focus rather than whatever happens to be in the upper-left. This also slightly tweaks the behavior of the <requestFocus /> tag to make it easier to use. This addresses a common problem where developers create dummy focusable views or make viewgroups focusable(InTouchmode) to prevent other views from gaining focus on activity start. In order to have something focused at activity start, developers now must explicitly provide a <requestFocus /> tag. However, this tag now requests "default" focus so that, when used in tandem with the focusedByDefault attribute(s), it can be placed at the root of the hierarchy to mimic the initial focus behavior before this CL. This will only take effect when targetApi >= 26. Bug: 34520588 Bug: 33016720 Test: Added/Updated CTS tests. Also built some test-apps to verify. Change-Id: I3e7fb7289f6dd53023ec24087f84c41526eaab2e
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions