Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2ce2b0d7 authored by Cassy Chun-Crogan's avatar Cassy Chun-Crogan
Browse files

[DocsUI M3] Uplift focus state for grid items

Previously focus led to a grey overlay over the entire grid item. Now
focus is displayed as a ring around the nameplate. When the item is also
selected, the focus ring wraps the non-transparent nameplate background
with a gap in between.

Since the outer MaterialCardView layer is always transparent, including
during focus, it can be removed and the RelativeLayout can become the
outer "item_root" layer. Set android:defaultFocusHighlightEnabled="false" on the RelativeLayout to
ensure that it remains transparent during focus.

grid_nameplate_background.xml defines the nameplate focus state and to
ensure that the nameplate gets the focus, set the duplicateParentState
property.

See attached bug for screenshots.

Test: m DocumentsUIGoogle && manual inspection
Bug: 400807410
Flag: com.android.documentsui.flags.use_material3
Change-Id: I71af8d10e59b0c27a5b360aca48dd04f336f7d58
parent 72e54720
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment