blob: 93606ea09aad9c1b038c9ccc3edcf3ba248a7c3e [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 <!-- The V2 preview card. -->
36 <FrameLayout
37 android:id="@+id/preview_card_container"
38 android:layout_width="match_parent"
39 android:layout_height="@dimen/preview_content_height"
40 android:paddingTop="@dimen/preview_content_padding_top"
41 android:paddingBottom="@dimen/preview_content_padding_bottom"
42 android:clipToPadding="false"
43 android:background="@color/fullscreen_preview_background"
44 android:visibility="gone">
45 <include layout="@layout/theme_preview_card_v2"/>
46 </FrameLayout>
47
48 <!-- Will remove it later. -->
Chuck Liaoa35ce9d2020-02-11 19:38:37 +080049 <com.android.wallpaper.widget.PreviewPager
Santiago Etchebehere5818e782019-05-24 11:15:34 -070050 android:id="@+id/theme_preview_pager"
51 android:layout_width="match_parent"
chihhangchuang05428e92020-05-12 22:33:36 +080052 android:layout_height="@dimen/preview_content_height"
53 android:background="@color/preview_pager_background"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080054
Santiago Etchebehere5818e782019-05-24 11:15:34 -070055 <androidx.recyclerview.widget.RecyclerView
56 android:id="@+id/options_container"
57 android:layout_width="match_parent"
chihhangchuang05428e92020-05-12 22:33:36 +080058 android:layout_height="0dp"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070059 android:layout_gravity="bottom|center_horizontal"
60 android:layout_marginTop="10dp"
chihhangchuang05428e92020-05-12 22:33:36 +080061 android:layout_weight="1"/>
62 </LinearLayout>
Santiago Etchebehere5818e782019-05-24 11:15:34 -070063
64 <androidx.core.widget.ContentLoadingProgressBar
65 android:id="@+id/loading_indicator"
66 style="@android:style/Widget.DeviceDefault.ProgressBar"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070067 android:layout_width="wrap_content"
Amin Shaikh06972d82019-04-19 16:29:01 -040068 android:layout_height="wrap_content"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070069 android:layout_marginTop="200dp"
70 android:layout_gravity="center_horizontal|top"
71 android:indeterminate="true"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080072
Santiago Etchebehere5818e782019-05-24 11:15:34 -070073 <FrameLayout
74 android:id="@+id/error_section"
75 android:layout_width="match_parent"
76 android:layout_height="match_parent"
77 android:visibility="gone">
78 <TextView
79 android:id="@+id/error_message"
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080080 style="@style/TitleTextAppearance"
Santiago Etchebehere5818e782019-05-24 11:15:34 -070081 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:layout_gravity="center"
84 android:gravity="center"
85 android:text="@string/something_went_wrong"/>
86 </FrameLayout>
87 </FrameLayout>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080088</LinearLayout>