1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/** 4 * Copyright (c) 2014, The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18--> 19<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:fillViewport="true"> 23 24 <RelativeLayout 25 android:id="@+id/screen_pinning_text_area" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:background="?android:attr/colorAccent" 29 android:gravity="center_vertical"> 30 31 <TextView 32 android:id="@+id/screen_pinning_title" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:paddingEnd="48dp" 36 android:paddingStart="48dp" 37 android:paddingTop="43dp" 38 android:text="@string/screen_pinning_title" 39 android:textColor="@android:color/white" 40 android:textSize="24sp" /> 41 42 <TextView 43 android:id="@+id/screen_pinning_description" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:layout_below="@id/screen_pinning_title" 47 android:paddingEnd="48dp" 48 android:paddingStart="48dp" 49 android:paddingTop="12.6dp" 50 android:text="@string/screen_pinning_description" 51 android:textColor="@android:color/white" 52 android:textSize="16sp" /> 53 54 <Button 55 android:id="@+id/screen_pinning_ok_button" 56 style="@android:style/Widget.Material.Button" 57 android:layout_width="wrap_content" 58 android:layout_height="36dp" 59 android:layout_alignParentEnd="true" 60 android:layout_below="@+id/screen_pinning_description" 61 android:layout_marginEnd="40dp" 62 android:layout_marginTop="18dp" 63 android:background="@null" 64 android:paddingEnd="8dp" 65 android:paddingStart="8dp" 66 android:text="@string/screen_pinning_positive" 67 android:textColor="@android:color/white" 68 android:textSize="14sp" /> 69 70 <Button 71 android:id="@+id/screen_pinning_cancel_button" 72 style="@android:style/Widget.Material.Button" 73 android:layout_width="wrap_content" 74 android:layout_height="36dp" 75 android:layout_alignTop="@id/screen_pinning_ok_button" 76 android:layout_marginEnd="4dp" 77 android:layout_toStartOf="@id/screen_pinning_ok_button" 78 android:background="@null" 79 android:paddingEnd="8dp" 80 android:paddingStart="8dp" 81 android:text="@string/screen_pinning_negative" 82 android:textColor="@android:color/white" 83 android:textSize="14sp" /> 84 85 </RelativeLayout> 86 87</ScrollView> 88