1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3     Licensed under the Apache License, Version 2.0 (the "License");
4     you may not use this file except in compliance with the License.
5     You may obtain a copy of the License at
6          http://www.apache.org/licenses/LICENSE-2.0
7     Unless required by applicable law or agreed to in writing, software
8     distributed under the License is distributed on an "AS IS" BASIS,
9     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10     See the License for the specific language governing permissions and
11     limitations under the License.
12-->
13
14<RelativeLayout
15    xmlns:android="http://schemas.android.com/apk/res/android"
16    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="wrap_content"
19    android:layout_marginTop="8dip"
20    android:layout_marginBottom="8dip"
21    android:minHeight="?android:attr/listPreferredItemHeight"
22    android:paddingEnd="?android:attr/scrollbarSize">
23
24    <ImageView
25        android:id="@+id/modifier_key_check_icon"
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content"
28        android:layout_centerVertical="true"
29        android:layout_alignParentStart="true"
30        android:layout_marginStart="24dip"
31        android:ellipsize="marquee"
32        android:fadingEdge="horizontal"
33        android:src="@drawable/ic_check_24dp"
34        android:tint="?androidprv:attr/materialColorPrimary"/>
35
36    <TextView
37        android:id="@+id/modifier_key_text"
38        android:layout_width="wrap_content"
39        android:layout_height="wrap_content"
40        android:layout_centerVertical="true"
41        android:textDirection="locale"
42        android:padding="16dp"
43        android:textAppearance="?android:attr/textAppearanceMedium"
44        android:layout_toEndOf="@+id/modifier_key_check_icon"
45        android:ellipsize="marquee"
46        android:fadingEdge="horizontal" />
47
48    <TextView
49        android:id="@+id/modifier_key_left_bracket"
50        android:layout_width="wrap_content"
51        android:layout_height="wrap_content"
52        android:layout_centerVertical="true"
53        android:textDirection="locale"
54        android:padding="1dp"
55        android:textAppearance="?android:attr/textAppearanceMedium"
56        android:layout_toEndOf="@+id/modifier_key_text"
57        android:fadingEdge="horizontal" />
58
59    <ImageView
60        android:id="@+id/modifier_key_action_key_icon"
61        android:layout_width="wrap_content"
62        android:layout_height="wrap_content"
63        android:layout_centerVertical="true"
64        android:layout_toEndOf="@+id/modifier_key_left_bracket"
65        android:fadingEdge="horizontal"
66        android:tint="?android:attr/textColorPrimary"/>
67
68    <TextView
69        android:id="@+id/modifier_key_right_bracket"
70        android:layout_width="wrap_content"
71        android:layout_height="wrap_content"
72        android:layout_centerVertical="true"
73        android:textDirection="locale"
74        android:padding="1dp"
75        android:textAppearance="?android:attr/textAppearanceMedium"
76        android:layout_toEndOf="@+id/modifier_key_action_key_icon"
77        android:fadingEdge="horizontal" />
78
79    <View android:layout_width="wrap_content"
80          android:layout_height="match_parent" />
81
82</RelativeLayout>
83