Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 1 | <?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 Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:orientation="vertical" |
Santiago Etchebehere | eb18698 | 2019-01-31 14:49:06 -0800 | [diff] [blame] | 23 | android:background="?android:colorPrimary"> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 24 | <include layout="@layout/section_header"/> |
| 25 | |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 26 | <androidx.constraintlayout.widget.ConstraintLayout |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 27 | android:layout_width="match_parent" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 28 | android:layout_height="match_parent"> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 29 | |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 30 | <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 Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 44 | |
| 45 | <androidx.recyclerview.widget.RecyclerView |
| 46 | android:id="@+id/options_container" |
| 47 | android:layout_width="match_parent" |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 48 | android:layout_height="@dimen/options_container_height" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 49 | 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 Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 57 | |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 58 | <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 Shaikh | 06972d8 | 2019-04-19 16:29:01 -0400 | [diff] [blame] | 79 | android:layout_height="wrap_content" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 80 | 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 Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 86 | |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame^] | 87 | </androidx.constraintlayout.widget.ConstraintLayout> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 88 | </LinearLayout> |