| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2019 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <androidx.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:id="@+id/theme_preview_card_background" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:clipToPadding="false" |
| android:maxHeight="@dimen/preview_theme_max_height" |
| android:minHeight="@dimen/preview_theme_min_height" |
| android:paddingTop="64dp"> |
| |
| <TextView |
| android:id="@+id/theme_preview_card_header" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal" |
| android:drawablePadding="@dimen/theme_preview_header_drawable_padding" |
| android:textAppearance="@style/CardTitleTextAppearance" |
| android:importantForAccessibility="no" |
| app:layout_constraintBottom_toTopOf="@id/theme_preview_card_body_container" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHorizontal_bias="0.5" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintVertical_chainStyle="spread_inside" |
| tools:text="Default"/> |
| |
| <FrameLayout |
| android:id="@+id/theme_preview_card_body_container" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_marginTop="@dimen/preview_theme_content_margin" |
| android:clipChildren="false" |
| android:importantForAccessibility="noHideDescendants" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHeight_max="@dimen/preview_theme_content_max_height" |
| app:layout_constraintHeight_min="@dimen/preview_theme_content_min_height" |
| app:layout_constraintHorizontal_bias="0.5" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/theme_preview_card_header"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |