Define menu keys for highlighting the menu entry on 2-pane UI

- Define an attribute for highlightable menu keys
- List the keys for Settings menu entries
- Support parsing the attribute

Bug: 199017944
Test: robotest
Change-Id: I5759bff591c79d498fffb8b2c2b57f2cb66c4421
This commit is contained in:
Jason Chiu
2021-09-06 15:39:17 +08:00
parent 8b3bb01ca8
commit 7426ab7b9f
8 changed files with 99 additions and 11 deletions

View File

@@ -105,7 +105,7 @@ public class HighlightablePreferenceGroupAdapter extends PreferenceGroupAdapter
context.getTheme().resolveAttribute(android.R.attr.selectableItemBackground,
outValue, true /* resolveRefs */);
mNormalBackgroundRes = outValue.resourceId;
mHighlightColor = context.getColor(R.color.preference_highligh_color);
mHighlightColor = context.getColor(R.color.preference_highlight_color);
}
@Override