From 66c6c352139fbfcf89951ea4d8e93b92d07609ca Mon Sep 17 00:00:00 2001 From: Andrey Yepin Date: Thu, 10 Oct 2024 21:41:22 -0700 Subject: Add keboard focus outline for Chooser targets This change applies the same focus outline as Launcher but the end result still needs more polishing. Some noticeable issues are: * the outline may overlap with a long label; * targets with a one-line labels look adjusted to the top and not centered; * with the light system ui theme, the outer online frame is barely visible compare to the inner outline (this is also true for Launcher). Bug: 295175912 Test: visual effect testing Flag: com.android.intentresolver.target_hover_and_keyboard_focus_states Change-Id: I1d22b187e0cc4b95c385d4f5b956effa31fd4505 --- java/res/values/attrs.xml | 7 +++++++ java/res/values/dimens.xml | 2 ++ 2 files changed, 9 insertions(+) (limited to 'java/res/values') diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index c9f2c300..8c3ff7e2 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -56,4 +56,11 @@ + + + + + + + diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index f85ad069..515343b6 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -41,6 +41,8 @@ 18sp 12sp 12sp + 11dp + 2dp 32dp 0dp 18dp -- cgit v1.2.3-59-g8ed1b