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 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical" 22 android:background="?android:colorPrimary"> 23 <include layout="@layout/section_header"/> 24 25 <FrameLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent"> 28 <LinearLayout 29 android:id="@+id/content_section" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:orientation="horizontal"> 33 34 <com.android.customization.widget.PreviewPager 35 android:id="@+id/theme_preview_pager" 36 android:layout_width="0dp" 37 android:layout_height="match_parent" 38 android:layout_weight="1" 39 android:background="@color/secondary_color"/> 40 <View 41 android:layout_width="1dp" 42 android:layout_height="match_parent" 43 android:background="@color/divider_color"/> 44 <LinearLayout 45 android:id="@+id/options_section" 46 android:layout_width="0dp" 47 android:layout_height="match_parent" 48 android:layout_weight="1" 49 android:paddingVertical="10dp" 50 android:orientation="vertical"> 51 52 <androidx.recyclerview.widget.RecyclerView 53 android:id="@+id/options_container" 54 android:layout_width="match_parent" 55 android:layout_height="0dp" 56 android:layout_weight="1"/> 57 58 <RelativeLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:background="@null" 62 android:paddingHorizontal="10dp"> 63 <CheckBox 64 android:id="@+id/use_my_wallpaper" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_alignParentStart="true" 68 android:layout_centerVertical="true" 69 android:layout_toStartOf="@+id/apply_button" 70 android:ellipsize="end" 71 android:paddingLeft="4dp" 72 android:minHeight="@dimen/min_taptarget_height" 73 android:text="@string/keep_my_wallpaper"/> 74 <Button 75 android:id="@+id/apply_button" 76 style="@style/ActionPrimaryButton" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_alignParentEnd="true" 80 android:text="@string/apply_theme_btn"/> 81 </RelativeLayout> 82 </LinearLayout> 83 </LinearLayout> 84 85 <androidx.core.widget.ContentLoadingProgressBar 86 android:id="@+id/loading_indicator" 87 style="@android:style/Widget.DeviceDefault.ProgressBar" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:layout_marginTop="200dp" 91 android:layout_gravity="center_horizontal|top" 92 android:indeterminate="true"/> 93 94 <FrameLayout 95 android:id="@+id/error_section" 96 android:layout_width="match_parent" 97 android:layout_height="match_parent" 98 android:visibility="gone"> 99 <TextView 100 android:id="@+id/error_message" 101 style="@style/HeaderTextAppearance" 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:layout_gravity="center" 105 android:gravity="center" 106 android:text="@string/something_went_wrong"/> 107 </FrameLayout> 108 </FrameLayout> 109</LinearLayout> 110