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" xmlns:app="http://schemas.android.com/apk/res-auto" 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 29 <LinearLayout 30 android:id="@+id/content_section" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" 33 android:orientation="horizontal"> 34 <com.android.customization.widget.PreviewPager 35 android:id="@+id/grid_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 app:card_style="screen_aspect_ratio"/> 41 42 <LinearLayout 43 android:id="@+id/options_section" 44 android:layout_width="0dp" 45 android:layout_height="match_parent" 46 android:layout_weight="1" 47 android:paddingVertical="10dp" 48 android:orientation="vertical"> 49 50 <androidx.recyclerview.widget.RecyclerView 51 android:id="@+id/options_container" 52 android:layout_width="match_parent" 53 android:layout_height="0dp" 54 android:layout_weight="1"/> 55 56 <RelativeLayout 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:paddingHorizontal="10dp"> 60 <Button 61 android:id="@+id/apply_button" 62 style="@style/ActionPrimaryButton" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_alignParentEnd="true" 66 android:text="@string/apply_btn"/> 67 </RelativeLayout> 68 69 </LinearLayout> 70 </LinearLayout> 71 <androidx.core.widget.ContentLoadingProgressBar 72 android:id="@+id/loading_indicator" 73 style="@android:style/Widget.DeviceDefault.ProgressBar" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_marginTop="200dp" 77 android:layout_gravity="center_horizontal|top" 78 android:indeterminate="true"/> 79 80 <FrameLayout 81 android:id="@+id/error_section" 82 android:layout_width="match_parent" 83 android:layout_height="match_parent" 84 android:visibility="gone"> 85 <TextView 86 android:id="@+id/error_message" 87 style="@style/HeaderTextAppearance" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:layout_gravity="center" 91 android:gravity="center" 92 android:text="@string/something_went_wrong"/> 93 </FrameLayout> 94 </FrameLayout> 95</LinearLayout> 96