1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17<com.android.systemui.statusbar.KeyboardShortcutAppItemLayout 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:orientation="horizontal" 21 android:background="@drawable/list_item_background" 22 android:focusable="true" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:minHeight="@dimen/ksh_app_item_minimum_height" 26 android:paddingBottom="8dp"> 27 <ImageView 28 android:id="@+id/keyboard_shortcuts_icon" 29 android:layout_width="24dp" 30 android:layout_height="24dp" 31 android:layout_marginEnd="24dp" 32 android:layout_gravity="center_vertical" 33 android:visibility="gone" 34 android:layout_alignParentStart="true" 35 android:layout_centerVertical="true"/> 36 <TextView 37 android:id="@+id/keyboard_shortcuts_keyword" 38 android:layout_toEndOf="@+id/keyboard_shortcuts_icon" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:paddingEnd="12dp" 42 android:paddingBottom="4dp" 43 android:textColor="?androidprv:attr/materialColorOnSurface" 44 android:textAppearance="?android:attr/textAppearanceMedium" 45 android:textSize="16sp" 46 android:maxLines="5" 47 android:singleLine="false" 48 android:scrollHorizontally="false" 49 android:layout_alignParentStart="true" 50 android:layout_centerVertical="true"/> 51 <com.android.systemui.statusbar.KeyboardShortcutKeysLayout 52 android:id="@+id/keyboard_shortcuts_item_container" 53 android:layout_toEndOf="@+id/keyboard_shortcuts_keyword" 54 android:orientation="horizontal" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_alignParentEnd="true" 58 android:textSize="14sp" 59 android:scrollHorizontally="false" 60 android:layout_centerVertical="true" 61 android:padding="0dp" /> 62</com.android.systemui.statusbar.KeyboardShortcutAppItemLayout> 63