1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2019 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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/controls_management_root" 21 android:orientation="vertical" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:gravity="center_horizontal" 25 android:paddingTop="@dimen/controls_management_top_padding" 26 android:paddingStart="@dimen/controls_management_side_padding" 27 android:paddingEnd="@dimen/controls_management_side_padding" > 28 29 30 <TextView 31 android:id="@+id/title" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:textAppearance="@style/TextAppearance.Control.Management.Title" 35 android:textAlignment="center" /> 36 37 <TextView 38 android:id="@+id/subtitle" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_marginTop="@dimen/controls_management_titles_margin" 42 android:textAppearance="@style/TextAppearance.Control.Management.Subtitle" 43 android:textAlignment="center" /> 44 45 <ViewStub 46 android:id="@+id/stub" 47 android:layout_width="match_parent" 48 android:layout_height="0dp" 49 android:layout_weight="1"/> 50 51 <FrameLayout 52 android:layout_width="match_parent" 53 android:layout_height="@dimen/controls_management_footer_height"> 54 55 <View 56 android:layout_width="match_parent" 57 android:layout_height="@dimen/controls_app_divider_height" 58 android:layout_gravity="center_horizontal|top" 59 android:background="?android:attr/listDivider" /> 60 61 <androidx.constraintlayout.widget.ConstraintLayout 62 android:layout_width="match_parent" 63 android:layout_height="match_parent" 64 android:paddingHorizontal="@dimen/controls_management_footer_side_margin" 65 android:paddingVertical="@dimen/controls_management_footer_top_margin" > 66 67 <Button 68 android:id="@+id/other_apps" 69 android:visibility="gone" 70 android:layout_width="wrap_content" 71 android:layout_height="match_parent" 72 android:gravity="center_vertical" 73 android:text="@string/controls_favorite_see_other_apps" 74 style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored" 75 app:layout_constraintTop_toTopOf="parent" 76 app:layout_constraintBottom_toBottomOf="parent" 77 app:layout_constraintStart_toStartOf="parent"/> 78 79 <Button 80 android:id="@+id/rearrange" 81 android:visibility="gone" 82 android:layout_width="wrap_content" 83 android:layout_height="match_parent" 84 android:gravity="center_vertical" 85 style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored" 86 app:layout_constraintTop_toTopOf="parent" 87 app:layout_constraintBottom_toBottomOf="parent" 88 app:layout_constraintStart_toStartOf="parent"/> 89 90 <Button 91 android:id="@+id/addControls" 92 android:visibility="gone" 93 android:layout_width="wrap_content" 94 android:layout_height="match_parent" 95 android:gravity="center_vertical" 96 android:text="@string/controls_favorite_add_controls" 97 style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored" 98 app:layout_constraintTop_toTopOf="parent" 99 app:layout_constraintBottom_toBottomOf="parent" 100 app:layout_constraintStart_toStartOf="parent"/> 101 102 <Button 103 android:id="@+id/done" 104 android:layout_width="wrap_content" 105 android:layout_height="match_parent" 106 android:text="@string/save" 107 style="@*android:style/Widget.DeviceDefault.Button.Colored" 108 app:layout_constraintTop_toTopOf="parent" 109 app:layout_constraintBottom_toBottomOf="parent" 110 app:layout_constraintEnd_toEndOf="parent"/> 111 </androidx.constraintlayout.widget.ConstraintLayout> 112 </FrameLayout> 113 114 115</LinearLayout> 116