blob: dddd0601ae822d2f32d3fcfad6508c4babc7c967 [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 Etchebehere988f99d2018-12-20 17:13:12 -080025 <com.android.customization.widget.PreviewPager
26 android:id="@+id/theme_preview_pager"
27 android:layout_width="match_parent"
28 android:layout_height="0dp"
29 android:layout_weight="1"
30 android:background="@color/secondary_color"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080031
32 <LinearLayout
33 android:id="@+id/options_section"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
Amin Shaikh06972d82019-04-19 16:29:01 -040036 android:paddingVertical="10dp"
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080037 android:orientation="vertical">
38
39 <androidx.recyclerview.widget.RecyclerView
40 android:id="@+id/options_container"
41 android:layout_width="match_parent"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080042 android:layout_height="@dimen/options_container_height"
43 android:layout_gravity="center_horizontal"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080044
45 <RelativeLayout
46 android:layout_width="match_parent"
Amin Shaikh06972d82019-04-19 16:29:01 -040047 android:layout_height="wrap_content"
48 android:paddingHorizontal="10dp">
Santiago Etchebehere1dbb7722019-01-22 15:20:12 -080049 <CheckBox
50 android:id="@+id/use_my_wallpaper"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_alignParentStart="true"
54 android:layout_centerVertical="true"
Amin Shaikh535db3e2019-04-19 09:51:41 -040055 android:paddingLeft="4dp"
Santiago Etchebehere10b63ae2019-04-17 12:25:38 -030056 android:minHeight="@dimen/min_taptarget_height"
Santiago Etchebehere1dbb7722019-01-22 15:20:12 -080057 android:text="@string/keep_my_wallpaper"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080058 <Button
Santiago Etchebeheref2a752d2019-01-14 14:29:27 -080059 android:id="@+id/apply_button"
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080060 style="@style/ActionPrimaryButton"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_alignParentEnd="true"
64 android:text="@string/apply_theme_btn"/>
65 </RelativeLayout>
66
67 </LinearLayout>
68
69</LinearLayout>