blob: d3580379822aa338afeb98f9b0a16205d76fa714 [file] [log] [blame]
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -07001<?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
Santiago Etchebeheref039b692019-06-05 14:29:25 -070025 <FrameLayout
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070026 android:layout_width="match_parent"
Santiago Etchebeheref039b692019-06-05 14:29:25 -070027 android:layout_height="match_parent">
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070028 <LinearLayout
Santiago Etchebeheref039b692019-06-05 14:29:25 -070029 android:id="@+id/content_section"
30 android:layout_width="match_parent"
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070031 android:layout_height="match_parent"
Santiago Etchebeheref039b692019-06-05 14:29:25 -070032 android:orientation="horizontal">
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070033
chihhangchuang0ff710e2020-05-20 10:08:01 +080034 <FrameLayout
Santiago Etchebeheref039b692019-06-05 14:29:25 -070035 android:layout_width="0dp"
36 android:layout_height="match_parent"
chihhangchuang0ff710e2020-05-20 10:08:01 +080037 android:layout_weight="1">
38 <FrameLayout
39 android:id="@+id/preview_card_container"
Santiago Etchebeheref039b692019-06-05 14:29:25 -070040 android:layout_width="match_parent"
chihhangchuang16c2eb22020-05-25 22:32:52 +080041 android:layout_height="wrap_content"
chihhangchuang0ff710e2020-05-20 10:08:01 +080042 android:paddingTop="@dimen/preview_content_padding_top"
43 android:paddingBottom="@dimen/preview_content_padding_bottom"
44 android:clipToPadding="false"
Tianguang Zhang12827ff2021-04-14 00:32:20 +020045 android:background="?android:colorSecondary">
chihhangchuang16c2eb22020-05-25 22:32:52 +080046 <include layout="@layout/theme_preview_card"/>
chihhangchuang0ff710e2020-05-20 10:08:01 +080047 </FrameLayout>
48 </FrameLayout>
Santiago Etchebeheref039b692019-06-05 14:29:25 -070049
chihhangchuang0ff710e2020-05-20 10:08:01 +080050 <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" />
Santiago Etchebeheref039b692019-06-05 14:29:25 -070056 </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"
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080074 style="@style/TitleTextAppearance"
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070075 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
Santiago Etchebeheref039b692019-06-05 14:29:25 -070077 android:layout_gravity="center"
78 android:gravity="center"
79 android:text="@string/something_went_wrong"/>
80 </FrameLayout>
81 </FrameLayout>
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070082</LinearLayout>