1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="@dimen/pin_dialog_width" 19 android:layout_height="wrap_content" 20 android:paddingTop="19dp" 21 android:paddingBottom="24dp" 22 android:paddingStart="24dp" 23 android:paddingEnd="24dp" 24 android:elevation="8dp" 25 android:background="@drawable/tv_iapp_dialog_background"> 26 <RelativeLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content"> 29 <TextView 30 android:id="@+id/title" 31 android:layout_width="@dimen/pin_dialog_title_width" 32 android:layout_height="wrap_content" 33 android:layout_marginBottom="7dp" 34 android:layout_centerHorizontal="true" 35 android:lineSpacingExtra="@dimen/pin_dialog_text_line_spacing" 36 android:textSize="@dimen/pin_dialog_text_size" 37 android:textColor="@color/tv_iapp_dialog_text_color" 38 android:fontFamily="@string/font" 39 android:singleLine="false" /> 40 <LinearLayout 41 android:layout_below="@id/title" 42 android:layout_marginTop="20dp" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_centerHorizontal="true" 46 android:orientation="horizontal" 47 > 48 <Button 49 android:id="@+id/ok" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_centerHorizontal="true" 53 android:gravity="center" 54 android:text="ok" 55 android:importantForAccessibility="yes" 56 android:paddingStart="24dp" 57 android:paddingEnd="24dp" /> 58 <Button 59 android:id="@+id/cancel" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_centerHorizontal="true" 63 android:layout_marginLeft="30dp" 64 android:gravity="center" 65 android:text="cancel" 66 android:importantForAccessibility="yes" 67 android:paddingStart="24dp" 68 android:paddingEnd="24dp" /> 69 </LinearLayout> 70 </RelativeLayout> 71</FrameLayout> 72