chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 1 | <?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 | --> |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 17 | <androidx.constraintlayout.widget.ConstraintLayout |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
chihhangchuang | 9dbe02f | 2020-05-18 21:28:13 +0800 | [diff] [blame] | 22 | android:paddingTop="@dimen/preview_theme_content_padding_top" |
chihhangchuang | 088b7c9 | 2020-05-27 11:25:32 +0800 | [diff] [blame] | 23 | android:paddingBottom="@dimen/preview_theme_content_padding_bottom" |
chihhangchuang | 8b466dd | 2020-05-27 14:12:12 +0800 | [diff] [blame] | 24 | android:clipToPadding="false" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 25 | android:clipChildren="false"> |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 26 | |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 27 | <FrameLayout |
| 28 | android:id="@+id/topbar_container" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="wrap_content" |
chihhangchuang | 088b7c9 | 2020-05-27 11:25:32 +0800 | [diff] [blame] | 31 | android:layout_marginHorizontal="@dimen/preview_theme_topbar_container_margin_horizontal" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 32 | 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> |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 40 | |
chihhangchuang | 9dbe02f | 2020-05-18 21:28:13 +0800 | [diff] [blame] | 41 | <TextView |
| 42 | android:id="@+id/smart_space_date" |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 43 | android:layout_width="match_parent" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 44 | android:layout_height="0dp" |
chihhangchuang | 9dbe02f | 2020-05-18 21:28:13 +0800 | [diff] [blame] | 45 | android:textSize="@dimen/preview_theme_smart_space_date_size" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 46 | android:singleLine="true" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 47 | android:gravity="center|bottom" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 48 | app:layout_constraintStart_toStartOf="parent" |
| 49 | app:layout_constraintEnd_toEndOf="parent" |
| 50 | app:layout_constraintTop_toBottomOf="@id/topbar_container" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 51 | app:layout_constraintBottom_toTopOf="@id/app_icon_shape_container" |
| 52 | app:layout_constraintHeight_percent="0.1" /> |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 53 | |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 54 | <FrameLayout |
| 55 | android:id="@+id/app_icon_shape_container" |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="0dp" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 58 | 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" |
chihhangchuang | 088b7c9 | 2020-05-27 11:25:32 +0800 | [diff] [blame] | 62 | app:layout_constraintHeight_percent="0.49"> |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 63 | <include layout="@layout/theme_preview_app_icon_shape" /> |
| 64 | </FrameLayout> |
chihhangchuang | b567b75 | 2020-05-13 22:42:27 +0800 | [diff] [blame] | 65 | |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 66 | <FrameLayout |
| 67 | android:id="@+id/color_icons_container" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="0dp" |
chihhangchuang | 088b7c9 | 2020-05-27 11:25:32 +0800 | [diff] [blame] | 70 | android:layout_marginHorizontal="@dimen/preview_theme_color_icons_container_margin_horizontal" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 71 | 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" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 75 | app:layout_constraintHeight_percent="0.275"> |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 76 | <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" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 82 | android:layout_height="0dp" |
chihhangchuang | 088b7c9 | 2020-05-27 11:25:32 +0800 | [diff] [blame] | 83 | android:layout_marginHorizontal="@dimen/preview_theme_qsb_container_margin_horizontal" |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 84 | app:layout_constraintStart_toStartOf="parent" |
| 85 | app:layout_constraintEnd_toEndOf="parent" |
| 86 | app:layout_constraintTop_toBottomOf="@id/color_icons_container" |
chihhangchuang | f178e88 | 2020-05-27 15:32:19 +0800 | [diff] [blame] | 87 | app:layout_constraintBottom_toBottomOf="parent" |
| 88 | app:layout_constraintHeight_percent="0.1"> |
chihhangchuang | 7a64217 | 2020-05-26 15:56:26 +0800 | [diff] [blame] | 89 | <include layout="@layout/theme_cover_qsb" /> |
| 90 | </FrameLayout> |
| 91 | |
| 92 | </androidx.constraintlayout.widget.ConstraintLayout> |