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 <FrameLayout 35 android:layout_width="0dp" 36 android:layout_height="match_parent" 37 android:layout_weight="1"> 38 <FrameLayout 39 android:id="@+id/preview_card_container" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:paddingTop="@dimen/preview_content_padding_top" 43 android:paddingBottom="@dimen/preview_content_padding_bottom" 44 android:clipToPadding="false" 45 android:background="?android:colorSecondary"> 46 <include layout="@layout/theme_preview_card"/> 47 </FrameLayout> 48 </FrameLayout> 49 50 <androidx.recyclerview.widget.RecyclerView 51 android:id="@+id/options_container" 52 android:layout_width="0dp" 53 android:layout_height="match_parent" 54 android:layout_weight="1" 55 android:paddingVertical="10dp" /> 56 </LinearLayout> 57 58 <androidx.core.widget.ContentLoadingProgressBar 59 android:id="@+id/loading_indicator" 60 style="@android:style/Widget.DeviceDefault.ProgressBar" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_marginTop="200dp" 64 android:layout_gravity="center_horizontal|top" 65 android:indeterminate="true"/> 66 67 <FrameLayout 68 android:id="@+id/error_section" 69 android:layout_width="match_parent" 70 android:layout_height="match_parent" 71 android:visibility="gone"> 72 <TextView 73 android:id="@+id/error_message" 74 style="@style/TitleTextAppearance" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:layout_gravity="center" 78 android:gravity="center" 79 android:text="@string/something_went_wrong"/> 80 </FrameLayout> 81 </FrameLayout> 82</LinearLayout> 83