blob: 704114f7b82511d88bd40fbe7398b39a40b7e265 [file] [log] [blame]
Santiago Etchebehere10e79f12018-12-19 15:53:42 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2018 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"
Santiago Etchebehereeb186982019-01-31 14:49:06 -080022 android:background="?android:colorPrimary">
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080023 <include layout="@layout/section_header"/>
24
Santiago Etchebehere5818e782019-05-24 11:15:34 -070025 <FrameLayout
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080026 android:layout_width="match_parent"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070027 android:layout_height="match_parent">
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080028
chihhangchuang05428e92020-05-12 22:33:36 +080029 <LinearLayout
Santiago Etchebehere5818e782019-05-24 11:15:34 -070030 android:id="@+id/content_section"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070031 android:layout_width="match_parent"
chihhangchuang05428e92020-05-12 22:33:36 +080032 android:layout_height="match_parent"
33 android:orientation="vertical">
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080034
chihhangchuang05428e92020-05-12 22:33:36 +080035 <FrameLayout
36 android:id="@+id/preview_card_container"
37 android:layout_width="match_parent"
38 android:layout_height="@dimen/preview_content_height"
39 android:paddingTop="@dimen/preview_content_padding_top"
40 android:paddingBottom="@dimen/preview_content_padding_bottom"
41 android:clipToPadding="false"
chihhangchuang0ff710e2020-05-20 10:08:01 +080042 android:background="@color/fullscreen_preview_background">
chihhangchuang05428e92020-05-12 22:33:36 +080043 <include layout="@layout/theme_preview_card_v2"/>
44 </FrameLayout>
45
Santiago Etchebehere5818e782019-05-24 11:15:34 -070046 <androidx.recyclerview.widget.RecyclerView
47 android:id="@+id/options_container"
48 android:layout_width="match_parent"
chihhangchuang05428e92020-05-12 22:33:36 +080049 android:layout_height="0dp"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070050 android:layout_gravity="bottom|center_horizontal"
51 android:layout_marginTop="10dp"
chihhangchuang05428e92020-05-12 22:33:36 +080052 android:layout_weight="1"/>
53 </LinearLayout>
Santiago Etchebehere5818e782019-05-24 11:15:34 -070054
55 <androidx.core.widget.ContentLoadingProgressBar
56 android:id="@+id/loading_indicator"
57 style="@android:style/Widget.DeviceDefault.ProgressBar"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070058 android:layout_width="wrap_content"
Amin Shaikh06972d82019-04-19 16:29:01 -040059 android:layout_height="wrap_content"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070060 android:layout_marginTop="200dp"
61 android:layout_gravity="center_horizontal|top"
62 android:indeterminate="true"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080063
Santiago Etchebehere5818e782019-05-24 11:15:34 -070064 <FrameLayout
65 android:id="@+id/error_section"
66 android:layout_width="match_parent"
67 android:layout_height="match_parent"
68 android:visibility="gone">
69 <TextView
70 android:id="@+id/error_message"
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080071 style="@style/TitleTextAppearance"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070072 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_gravity="center"
75 android:gravity="center"
76 android:text="@string/something_went_wrong"/>
77 </FrameLayout>
78 </FrameLayout>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080079</LinearLayout>