OSDN Git Service

Add a public API defaultFocusHighlightEnabled.
authorJiaquan He <hejq@google.com>
Thu, 2 Feb 2017 19:54:12 +0000 (11:54 -0800)
committerJiaquan He <hejq@google.com>
Wed, 12 Apr 2017 18:23:43 +0000 (18:23 +0000)
commitb7daaf8b5f9a41f92da58d86bf4be758ac27df6c
treefaf932c491bdbf4eb02882b57a28db8e3f7f9377
parent4a81674b45b7250c4e2a80330371f7aa1c066d05
Add a public API defaultFocusHighlightEnabled.

This commit adds a public API to turn on/off default
focus highlights. When a focused View is detected to
have no state_focused defined, we can use this API to
decide wether we should show a default highlight for it.

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsViewTestCases
-t android.view.cts.View_DefaultFocusHighlightTest
Bug: 35096940

Change-Id: I76b45d6bf5761641a0ed7f4d0b04cb325ed72b52
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/view/View.java
core/res/res/values/attrs.xml
core/res/res/values/public.xml
core/res/res/values/styles.xml