blob: 84c55166b346473af549d5824fcc51dd0158a13e [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"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070019 xmlns:app="http://schemas.android.com/apk/res-auto"
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080020 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:orientation="vertical"
Santiago Etchebehereeb186982019-01-31 14:49:06 -080023 android:background="?android:colorPrimary">
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080024 <include layout="@layout/section_header"/>
25
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070026 <androidx.constraintlayout.widget.ConstraintLayout
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080027 android:layout_width="match_parent"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070028 android:layout_height="match_parent">
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080029
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070030 <com.android.customization.widget.PreviewPager
31 android:id="@+id/theme_preview_pager"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="@color/secondary_color"
35 app:layout_constrainedHeight="true"
36 app:layout_constraintBottom_toTopOf="@id/options_container"
37 app:layout_constraintEnd_toEndOf="parent"
38 app:layout_constraintHeight_max="@dimen/preview_pager_max_height"
39 app:layout_constraintHeight_min="@dimen/preview_pager_min_height"
40 app:layout_constraintStart_toStartOf="parent"
41 app:layout_constraintTop_toTopOf="parent"
42 app:layout_constraintVertical_bias="0.0"
43 app:layout_constraintVertical_chainStyle="spread_inside"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080044
45 <androidx.recyclerview.widget.RecyclerView
46 android:id="@+id/options_container"
47 android:layout_width="match_parent"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080048 android:layout_height="@dimen/options_container_height"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070049 android:layout_gravity="bottom|center_horizontal"
50 android:layout_marginTop="10dp"
51 android:layout_weight="1"
52 app:layout_constraintBottom_toTopOf="@id/use_my_wallpaper"
53 app:layout_constraintEnd_toEndOf="parent"
54 app:layout_constraintStart_toStartOf="parent"
55 app:layout_constraintTop_toBottomOf="@+id/theme_preview_pager"
56 app:layout_constraintVertical_bias="1.0"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080057
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070058 <CheckBox
59 android:id="@+id/use_my_wallpaper"
60 android:layout_width="wrap_content"
61 android:layout_height="@dimen/min_taptarget_height"
62 android:layout_marginStart="10dp"
63 android:ellipsize="end"
64 android:gravity="start|center_vertical"
65 android:paddingLeft="4dp"
66 android:text="@string/keep_my_wallpaper"
67 app:layout_constraintBottom_toTopOf="@id/apply_button"
68 app:layout_constraintEnd_toEndOf="parent"
69 app:layout_constraintHeight_min="@dimen/min_taptarget_height"
70 app:layout_constraintHorizontal_bias="0.0"
71 app:layout_constraintStart_toStartOf="parent"
72 app:layout_constraintTop_toBottomOf="@id/options_container"
73 app:layout_constraintVertical_bias="1.0"/>
74
75 <Button
76 android:id="@+id/apply_button"
77 style="@style/ActionPrimaryButton"
78 android:layout_width="wrap_content"
Amin Shaikh06972d82019-04-19 16:29:01 -040079 android:layout_height="wrap_content"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070080 android:layout_gravity="end"
81 android:layout_marginEnd="10dp"
82 android:layout_marginBottom="10dp"
83 android:text="@string/apply_theme_btn"
84 app:layout_constraintBottom_toBottomOf="parent"
85 app:layout_constraintEnd_toEndOf="parent"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080086
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070087 </androidx.constraintlayout.widget.ConstraintLayout>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080088</LinearLayout>