1. get icon from getKeyboardSettingsFeatureProvider 2. set color for it Bug: 269214138 Test: manual, atest KeyboardSettingsFeatureProviderImplTest Change-Id: I3a2d47e8230aec1404300b000e8b1fcf221e2a65
		
			
				
	
	
		
			83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!-- Copyright (C) 2022 The Android Open Source Project
 | |
|      Licensed under the Apache License, Version 2.0 (the "License");
 | |
|      you may not use this file except in compliance with the License.
 | |
|      You may obtain a copy of the License at
 | |
|           http://www.apache.org/licenses/LICENSE-2.0
 | |
|      Unless required by applicable law or agreed to in writing, software
 | |
|      distributed under the License is distributed on an "AS IS" BASIS,
 | |
|      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|      See the License for the specific language governing permissions and
 | |
|      limitations under the License.
 | |
| -->
 | |
| 
 | |
| <RelativeLayout
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
 | |
|     android:layout_width="match_parent"
 | |
|     android:layout_height="wrap_content"
 | |
|     android:layout_marginTop="8dip"
 | |
|     android:layout_marginBottom="8dip"
 | |
|     android:minHeight="?android:attr/listPreferredItemHeight"
 | |
|     android:paddingEnd="?android:attr/scrollbarSize">
 | |
| 
 | |
|     <ImageView
 | |
|         android:id="@+id/modifier_key_check_icon"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:layout_alignParentStart="true"
 | |
|         android:layout_marginStart="24dip"
 | |
|         android:ellipsize="marquee"
 | |
|         android:fadingEdge="horizontal"
 | |
|         android:src="@drawable/ic_check_24dp"
 | |
|         android:tint="?androidprv:attr/materialColorPrimary"/>
 | |
| 
 | |
|     <TextView
 | |
|         android:id="@+id/modifier_key_text"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:textDirection="locale"
 | |
|         android:padding="16dp"
 | |
|         android:textAppearance="?android:attr/textAppearanceMedium"
 | |
|         android:layout_toEndOf="@+id/modifier_key_check_icon"
 | |
|         android:ellipsize="marquee"
 | |
|         android:fadingEdge="horizontal" />
 | |
| 
 | |
|     <TextView
 | |
|         android:id="@+id/modifier_key_left_bracket"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:textDirection="locale"
 | |
|         android:padding="1dp"
 | |
|         android:textAppearance="?android:attr/textAppearanceMedium"
 | |
|         android:layout_toEndOf="@+id/modifier_key_text"
 | |
|         android:fadingEdge="horizontal" />
 | |
| 
 | |
|     <ImageView
 | |
|         android:id="@+id/modifier_key_action_key_icon"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:layout_toEndOf="@+id/modifier_key_left_bracket"
 | |
|         android:fadingEdge="horizontal"
 | |
|         android:tint="?android:attr/textColorPrimary"/>
 | |
| 
 | |
|     <TextView
 | |
|         android:id="@+id/modifier_key_right_bracket"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:textDirection="locale"
 | |
|         android:padding="1dp"
 | |
|         android:textAppearance="?android:attr/textAppearanceMedium"
 | |
|         android:layout_toEndOf="@+id/modifier_key_action_key_icon"
 | |
|         android:fadingEdge="horizontal" />
 | |
| 
 | |
|     <View android:layout_width="wrap_content"
 | |
|           android:layout_height="match_parent" />
 | |
| 
 | |
| </RelativeLayout>
 |