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