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 <include layout="@layout/section_header"/> 24 25 <androidx.constraintlayout.widget.ConstraintLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent"> 28 29 <FrameLayout 30 android:id="@+id/component_preview_container" 31 android:layout_width="match_parent" 32 android:layout_height="0dp" 33 android:paddingTop="@dimen/preview_content_padding_top" 34 android:paddingBottom="@dimen/preview_content_padding_bottom" 35 android:clipToPadding="false" 36 app:layout_constrainedHeight="true" 37 app:layout_constraintBottom_toTopOf="@+id/component_scroll_view" 38 app:layout_constraintEnd_toEndOf="parent" 39 app:layout_constraintHeight_max="@dimen/preview_pager_max_height" 40 app:layout_constraintStart_toStartOf="parent" 41 app:layout_constraintTop_toTopOf="parent" 42 app:layout_constraintVertical_bias="0.0" 43 app:layout_constraintHeight_percent="@dimen/preview_pager_maximum_height_ratio"> 44 45 <include layout="@layout/theme_preview_card"/> 46 </FrameLayout> 47 48 <ScrollView 49 android:id="@+id/component_scroll_view" 50 android:layout_width="match_parent" 51 android:layout_height="0dp" 52 android:background="?android:colorPrimary" 53 app:layout_constraintEnd_toEndOf="parent" 54 app:layout_constraintStart_toStartOf="parent" 55 app:layout_constraintTop_toBottomOf="@+id/component_preview_container" 56 app:layout_constraintBottom_toBottomOf="parent"> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:orientation="vertical"> 62 63 <TextView 64 android:id="@+id/component_options_title" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_marginVertical="18dp" 68 android:layout_marginHorizontal="16dp" 69 android:textAlignment="center" 70 android:textAppearance="@style/TitleTextAppearance" 71 android:textSize="@dimen/component_options_title_size"/> 72 73 <EditText 74 android:id="@+id/custom_theme_name" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:layout_marginVertical="16dp" 78 android:layout_marginHorizontal="16dp" 79 android:layout_gravity="center|top" 80 android:importantForAutofill="no" 81 android:minWidth="300dp" 82 style="@style/CustomThemeNameEditText"/> 83 </LinearLayout> 84 </ScrollView> 85 </androidx.constraintlayout.widget.ConstraintLayout> 86</LinearLayout> 87