1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:id="@+id/keyboard_layout_picker_container" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:layout_marginHorizontal="@dimen/keyboard_picker_margin_one_pane" 21 android:layout_marginVertical="@dimen/keyboard_picker_margin_one_pane_large" 22 android:orientation="horizontal"> 23 24 <FrameLayout 25 android:id="@+id/keyboard_layout_preview_container" 26 android:layout_width="wrap_content" 27 android:layout_height="match_parent" 28 android:layout_marginEnd="@dimen/keyboard_picker_margin_one_pane" 29 android:background="@drawable/keyboard_review_layout_background"> 30 31 <ImageView 32 android:id="@+id/keyboard_layout_preview" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:layout_marginHorizontal="@dimen/keyboard_picker_margin_small" 36 android:layout_marginTop="@dimen/keyboard_picker_margin_small" 37 android:layout_marginBottom="@dimen/keyboard_picker_margin_large" 38 android:adjustViewBounds="true" 39 android:scaleType="fitCenter" /> 40 41 <TextView 42 android:id="@+id/keyboard_layout_preview_name" 43 android:layout_width="match_parent" 44 android:layout_height="@dimen/keyboard_picker_margin_large" 45 android:layout_gravity="bottom" 46 android:gravity="center" 47 android:textColor="?android:attr/textColorPrimary" 48 android:textSize="@dimen/keyboard_picker_text_size" /> 49 </FrameLayout> 50 51 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 52 android:layout_width="0dp" 53 android:layout_height="match_parent" 54 android:layout_marginStart="@dimen/keyboard_picker_margin_one_pane" 55 android:layout_weight="1" 56 android:orientation="vertical"> 57 58 <FrameLayout 59 android:id="@+id/keyboard_layout_title" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:background="?android:attr/colorBackground" 63 android:elevation="1dp" 64 android:outlineAmbientShadowColor="@android:color/transparent" 65 android:outlineSpotShadowColor="@android:color/transparent" /> 66 67 <FrameLayout 68 android:id="@+id/keyboard_layouts" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_marginTop="@dimen/keyboard_picker_margin_small" 72 android:background="?android:attr/colorBackground" /> 73 </LinearLayout> 74 75</LinearLayout>