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 | --> |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
Santiago Etchebehere | eb18698 | 2019-01-31 14:49:06 -0800 | [diff] [blame] | 22 | android:background="?android:colorPrimary"> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 23 | <include layout="@layout/section_header"/> |
| 24 | |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 25 | <FrameLayout |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 26 | android:layout_width="match_parent" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame] | 27 | android:layout_height="match_parent"> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 28 | |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 29 | <androidx.constraintlayout.widget.ConstraintLayout |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 30 | android:id="@+id/content_section" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 32 | android:layout_height="match_parent"> |
chihhangchuang | 05428e9 | 2020-05-12 22:33:36 +0800 | [diff] [blame] | 33 | <FrameLayout |
| 34 | android:id="@+id/preview_card_container" |
| 35 | android:layout_width="match_parent" |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 36 | android:layout_height="0dp" |
chihhangchuang | 05428e9 | 2020-05-12 22:33:36 +0800 | [diff] [blame] | 37 | android:paddingTop="@dimen/preview_content_padding_top" |
| 38 | android:paddingBottom="@dimen/preview_content_padding_bottom" |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 39 | android:background="@color/fullscreen_preview_background" |
chihhangchuang | 05428e9 | 2020-05-12 22:33:36 +0800 | [diff] [blame] | 40 | android:clipToPadding="false" |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 41 | app:layout_constrainedHeight="true" |
| 42 | app:layout_constraintStart_toStartOf="parent" |
| 43 | app:layout_constraintEnd_toEndOf="parent" |
| 44 | app:layout_constraintTop_toTopOf="parent" |
| 45 | app:layout_constraintBottom_toTopOf="@id/options_container" |
| 46 | app:layout_constraintHeight_max="@dimen/preview_pager_max_height" |
| 47 | app:layout_constraintVertical_bias="0.0" |
| 48 | app:layout_constraintHeight_percent="0.7"> |
chihhangchuang | 05428e9 | 2020-05-12 22:33:36 +0800 | [diff] [blame] | 49 | <include layout="@layout/theme_preview_card_v2"/> |
| 50 | </FrameLayout> |
| 51 | |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 52 | <androidx.recyclerview.widget.RecyclerView |
| 53 | android:id="@+id/options_container" |
| 54 | android:layout_width="match_parent" |
chihhangchuang | 05428e9 | 2020-05-12 22:33:36 +0800 | [diff] [blame] | 55 | android:layout_height="0dp" |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 56 | android:layout_gravity="bottom|center_horizontal" |
| 57 | android:layout_marginTop="10dp" |
chihhangchuang | 9c84ab4 | 2020-05-25 18:44:01 +0800 | [diff] [blame^] | 58 | app:layout_constraintStart_toStartOf="parent" |
| 59 | app:layout_constraintEnd_toEndOf="parent" |
| 60 | app:layout_constraintTop_toBottomOf="@+id/preview_card_container" |
| 61 | app:layout_constraintBottom_toBottomOf="parent" |
| 62 | app:layout_constraintVertical_bias="1.0"/> |
| 63 | </androidx.constraintlayout.widget.ConstraintLayout> |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 64 | |
| 65 | <androidx.core.widget.ContentLoadingProgressBar |
| 66 | android:id="@+id/loading_indicator" |
| 67 | style="@android:style/Widget.DeviceDefault.ProgressBar" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame] | 68 | android:layout_width="wrap_content" |
Amin Shaikh | 06972d8 | 2019-04-19 16:29:01 -0400 | [diff] [blame] | 69 | android:layout_height="wrap_content" |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 70 | android:layout_marginTop="200dp" |
| 71 | android:layout_gravity="center_horizontal|top" |
| 72 | android:indeterminate="true"/> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 73 | |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 74 | <FrameLayout |
| 75 | android:id="@+id/error_section" |
| 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="match_parent" |
| 78 | android:visibility="gone"> |
| 79 | <TextView |
| 80 | android:id="@+id/error_message" |
Santiago Etchebehere | 58e1b52 | 2019-12-05 10:25:13 -0800 | [diff] [blame] | 81 | style="@style/TitleTextAppearance" |
Santiago Etchebehere | 5818e78 | 2019-05-24 11:15:34 -0700 | [diff] [blame] | 82 | android:layout_width="match_parent" |
| 83 | android:layout_height="wrap_content" |
| 84 | android:layout_gravity="center" |
| 85 | android:gravity="center" |
| 86 | android:text="@string/something_went_wrong"/> |
| 87 | </FrameLayout> |
| 88 | </FrameLayout> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 89 | </LinearLayout> |