blob: 4b2961713071e9367f1e3c82058b49425e3f270a [file] [log] [blame]
chihhangchuangb567b752020-05-13 22:42:27 +08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2020 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-->
chihhangchuang7a642172020-05-26 15:56:26 +080017<androidx.constraintlayout.widget.ConstraintLayout
chihhangchuangb567b752020-05-13 22:42:27 +080018 xmlns:android="http://schemas.android.com/apk/res/android"
chihhangchuang7a642172020-05-26 15:56:26 +080019 xmlns:app="http://schemas.android.com/apk/res-auto"
chihhangchuangb567b752020-05-13 22:42:27 +080020 android:layout_width="match_parent"
21 android:layout_height="match_parent"
chihhangchuang9dbe02f2020-05-18 21:28:13 +080022 android:paddingTop="@dimen/preview_theme_content_padding_top"
chihhangchuang088b7c92020-05-27 11:25:32 +080023 android:paddingBottom="@dimen/preview_theme_content_padding_bottom"
chihhangchuang8b466dd2020-05-27 14:12:12 +080024 android:clipToPadding="false"
chihhangchuang7a642172020-05-26 15:56:26 +080025 android:clipChildren="false">
chihhangchuangb567b752020-05-13 22:42:27 +080026
chihhangchuang7a642172020-05-26 15:56:26 +080027 <FrameLayout
28 android:id="@+id/topbar_container"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
chihhangchuang088b7c92020-05-27 11:25:32 +080031 android:layout_marginHorizontal="@dimen/preview_theme_topbar_container_margin_horizontal"
chihhangchuang7a642172020-05-26 15:56:26 +080032 app:layout_constraintStart_toStartOf="parent"
33 app:layout_constraintEnd_toEndOf="parent"
34 app:layout_constraintTop_toTopOf="parent"
35 app:layout_constraintBottom_toTopOf="@id/smart_space_date"
36 app:layout_constraintVertical_bias="0.0"
37 app:layout_constraintVertical_chainStyle="spread_inside">
38 <include layout="@layout/theme_preview_topbar" />
39 </FrameLayout>
chihhangchuangb567b752020-05-13 22:42:27 +080040
chihhangchuang9dbe02f2020-05-18 21:28:13 +080041 <TextView
42 android:id="@+id/smart_space_date"
chihhangchuangb567b752020-05-13 22:42:27 +080043 android:layout_width="match_parent"
chihhangchuangf178e882020-05-27 15:32:19 +080044 android:layout_height="0dp"
chihhangchuang9dbe02f2020-05-18 21:28:13 +080045 android:textSize="@dimen/preview_theme_smart_space_date_size"
chihhangchuang7a642172020-05-26 15:56:26 +080046 android:singleLine="true"
chihhangchuangf178e882020-05-27 15:32:19 +080047 android:gravity="center|bottom"
chihhangchuang7a642172020-05-26 15:56:26 +080048 app:layout_constraintStart_toStartOf="parent"
49 app:layout_constraintEnd_toEndOf="parent"
50 app:layout_constraintTop_toBottomOf="@id/topbar_container"
chihhangchuangf178e882020-05-27 15:32:19 +080051 app:layout_constraintBottom_toTopOf="@id/app_icon_shape_container"
52 app:layout_constraintHeight_percent="0.1" />
chihhangchuangb567b752020-05-13 22:42:27 +080053
chihhangchuang7a642172020-05-26 15:56:26 +080054 <FrameLayout
55 android:id="@+id/app_icon_shape_container"
chihhangchuangb567b752020-05-13 22:42:27 +080056 android:layout_width="match_parent"
57 android:layout_height="0dp"
chihhangchuang7a642172020-05-26 15:56:26 +080058 app:layout_constraintStart_toStartOf="parent"
59 app:layout_constraintEnd_toEndOf="parent"
60 app:layout_constraintTop_toBottomOf="@id/smart_space_date"
61 app:layout_constraintBottom_toTopOf="@id/color_icons_container"
chihhangchuang088b7c92020-05-27 11:25:32 +080062 app:layout_constraintHeight_percent="0.49">
chihhangchuang7a642172020-05-26 15:56:26 +080063 <include layout="@layout/theme_preview_app_icon_shape" />
64 </FrameLayout>
chihhangchuangb567b752020-05-13 22:42:27 +080065
chihhangchuang7a642172020-05-26 15:56:26 +080066 <FrameLayout
67 android:id="@+id/color_icons_container"
68 android:layout_width="match_parent"
69 android:layout_height="0dp"
chihhangchuang088b7c92020-05-27 11:25:32 +080070 android:layout_marginHorizontal="@dimen/preview_theme_color_icons_container_margin_horizontal"
chihhangchuang7a642172020-05-26 15:56:26 +080071 app:layout_constraintStart_toStartOf="parent"
72 app:layout_constraintEnd_toEndOf="parent"
73 app:layout_constraintTop_toBottomOf="@id/app_icon_shape_container"
74 app:layout_constraintBottom_toTopOf="@id/theme_qsb_container"
chihhangchuangf178e882020-05-27 15:32:19 +080075 app:layout_constraintHeight_percent="0.275">
chihhangchuang7a642172020-05-26 15:56:26 +080076 <include layout="@layout/theme_preview_color_icons" />
77 </FrameLayout>
78
79 <FrameLayout
80 android:id="@+id/theme_qsb_container"
81 android:layout_width="match_parent"
chihhangchuangf178e882020-05-27 15:32:19 +080082 android:layout_height="0dp"
chihhangchuang088b7c92020-05-27 11:25:32 +080083 android:layout_marginHorizontal="@dimen/preview_theme_qsb_container_margin_horizontal"
chihhangchuang7a642172020-05-26 15:56:26 +080084 app:layout_constraintStart_toStartOf="parent"
85 app:layout_constraintEnd_toEndOf="parent"
86 app:layout_constraintTop_toBottomOf="@id/color_icons_container"
chihhangchuangf178e882020-05-27 15:32:19 +080087 app:layout_constraintBottom_toBottomOf="parent"
88 app:layout_constraintHeight_percent="0.1">
chihhangchuang7a642172020-05-26 15:56:26 +080089 <include layout="@layout/theme_cover_qsb" />
90 </FrameLayout>
91
92</androidx.constraintlayout.widget.ConstraintLayout>