| <?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. |
| --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:background="?android:colorPrimary"> |
| <include layout="@layout/section_header"/> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <FrameLayout |
| android:id="@+id/component_preview_container" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:background="?android:colorPrimary" |
| app:layout_constrainedHeight="true" |
| app:layout_constraintBottom_toTopOf="@+id/divider" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHeight_max="@dimen/preview_pager_max_height" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintVertical_bias="0.0" |
| app:layout_constraintHeight_percent="@dimen/preview_pager_maximum_height_ratio"> |
| |
| <include |
| android:id="@+id/component_preview_content" |
| layout="@layout/theme_component_preview" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"/> |
| </FrameLayout> |
| |
| <View |
| android:id="@+id/divider" |
| android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:background="?android:colorForeground" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/component_preview_container" |
| app:layout_constraintBottom_toTopOf="@+id/component_scroll_view"/> |
| |
| <ScrollView |
| android:id="@+id/component_scroll_view" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/divider" |
| app:layout_constraintBottom_toBottomOf="parent"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/component_options_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginVertical="18dp" |
| android:layout_marginHorizontal="16dp" |
| android:textAlignment="center" |
| android:textAppearance="@style/TitleTextAppearance" |
| android:textSize="@dimen/component_options_title_size" /> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/options_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal"/> |
| </LinearLayout> |
| </ScrollView> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| </LinearLayout> |