1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2019 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    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    android:background="?android:colorPrimary">
24    <include layout="@layout/section_header"/>
25
26    <androidx.constraintlayout.widget.ConstraintLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent">
29
30        <FrameLayout
31            android:id="@+id/component_preview_container"
32            android:layout_width="match_parent"
33            android:layout_height="0dp"
34            android:background="@color/secondary_color"
35            app:layout_constrainedHeight="true"
36            app:layout_constraintBottom_toTopOf="@+id/guideline"
37            app:layout_constraintEnd_toEndOf="parent"
38            app:layout_constraintHeight_max="@dimen/preview_pager_max_height"
39            app:layout_constraintHorizontal_bias="0.5"
40            app:layout_constraintStart_toStartOf="parent"
41            app:layout_constraintTop_toTopOf="parent"
42            app:layout_constraintVertical_bias="0.0">
43
44            <include
45                android:id="@+id/component_preview_content"
46                layout="@layout/theme_preview_card"
47                android:layout_width="match_parent"
48                android:layout_height="match_parent"
49                android:layout_marginHorizontal="@dimen/preview_page_horizontal_margin"
50                android:layout_marginTop="@dimen/preview_page_top_margin"
51                android:layout_marginBottom="@dimen/indicator_container_height"/>
52        </FrameLayout>
53
54        <androidx.constraintlayout.widget.Guideline
55            android:id="@+id/guideline"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:orientation="horizontal"
59            app:layout_constraintGuide_percent=".7"/>
60
61        <TextView
62            android:id="@+id/component_options_title"
63            android:layout_width="match_parent"
64            android:layout_height="wrap_content"
65            android:layout_marginTop="10dp"
66            android:layout_marginStart="10dp"
67            android:layout_marginEnd="10dp"
68            android:layout_marginBottom="10dp"
69            android:textAlignment="center"
70            android:textAppearance="@style/TitleTextAppearance"
71            android:textSize="@dimen/component_options_title_size"
72            app:layout_constraintEnd_toEndOf="parent"
73            app:layout_constraintStart_toStartOf="parent"
74            app:layout_constraintTop_toBottomOf="@+id/component_preview_container"
75            app:layout_constraintBottom_toBottomOf="parent"
76            app:layout_constraintVertical_bias=".15"/>
77
78        <EditText
79            android:id="@+id/custom_theme_name"
80            style="@style/CustomThemeNameEditText"
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:importantForAutofill="no"
84            android:minWidth="300dp"
85            app:layout_constraintBottom_toBottomOf="parent"
86            app:layout_constraintEnd_toEndOf="parent"
87            app:layout_constraintHorizontal_bias="0.5"
88            app:layout_constraintStart_toStartOf="parent"
89            app:layout_constraintTop_toBottomOf="@+id/component_options_title"
90            app:layout_constraintVertical_bias=".25"/>
91
92
93    </androidx.constraintlayout.widget.ConstraintLayout>
94
95</LinearLayout>
96