Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
Diego Vela | a57aa28 | 2021-10-14 16:30:12 -0700 | [diff] [blame] | 3 | Copyright 2021 The Android Open Source Project |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 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 | |
| 18 | <androidx.constraintlayout.widget.ConstraintLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 21 | xmlns:tools="http://schemas.android.com/tools" |
| 22 | android:id="@+id/rootLayout" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
Diego Vela | a57aa28 | 2021-10-14 16:30:12 -0700 | [diff] [blame] | 25 | tools:context="androidx.window.sample.DisplayFeaturesNoConfigChangeActivity"> |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 26 | |
| 27 | <FrameLayout |
Pietro Maggi | 641e9b7 | 2021-11-15 19:28:37 +0100 | [diff] [blame] | 28 | android:id="@+id/feature_container_layout" |
| 29 | android:layout_width="0dp" |
| 30 | android:layout_height="0dp" |
| 31 | app:layout_constraintEnd_toEndOf="parent" |
| 32 | app:layout_constraintStart_toStartOf="parent" |
| 33 | app:layout_constraintTop_toTopOf="parent" |
| 34 | app:layout_constraintBottom_toBottomOf="parent"/> |
| 35 | |
| 36 | <TextView |
| 37 | android:id="@+id/current_state" |
| 38 | android:layout_width="0dp" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:text="@string/current_state" |
| 41 | android:textAppearance="@style/TextAppearance.AppCompat.Large" |
| 42 | app:layout_constraintEnd_toEndOf="parent" |
| 43 | app:layout_constraintHorizontal_bias="0.0" |
| 44 | app:layout_constraintStart_toStartOf="parent" |
| 45 | app:layout_constraintTop_toTopOf="parent" /> |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 46 | |
| 47 | <LinearLayout |
| 48 | android:id="@+id/legendLayout" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:orientation="vertical" |
| 52 | app:layout_constraintBottom_toBottomOf="parent" |
| 53 | app:layout_constraintEnd_toEndOf="parent" |
| 54 | app:layout_constraintStart_toStartOf="parent"> |
| 55 | |
| 56 | <TextView |
| 57 | android:id="@+id/legendTextView" |
| 58 | android:layout_width="match_parent" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:text="@string/legend" /> |
| 61 | |
| 62 | <LinearLayout |
| 63 | android:layout_width="match_parent" |
| 64 | android:layout_height="match_parent" |
| 65 | android:orientation="horizontal"> |
| 66 | |
| 67 | <ImageView |
| 68 | android:id="@+id/foldColorImageView" |
| 69 | android:layout_width="20dp" |
| 70 | android:layout_height="20dp" |
| 71 | android:foreground="@color/colorFeatureFold" /> |
| 72 | |
| 73 | <TextView |
| 74 | android:id="@+id/foldColorTextView" |
| 75 | android:layout_width="0dp" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:layout_weight="1" |
| 78 | android:text="@string/fold" /> |
| 79 | </LinearLayout> |
| 80 | |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 81 | </LinearLayout> |
| 82 | |
Diego Vela | a6f130c | 2021-10-06 15:44:10 -0700 | [diff] [blame] | 83 | <androidx.recyclerview.widget.RecyclerView |
| 84 | android:id="@+id/infoLogRecyclerView" |
| 85 | android:layout_width="0dp" |
| 86 | android:layout_height="0dp" |
| 87 | app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 88 | app:layout_constraintEnd_toEndOf="parent" |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 89 | app:layout_constraintStart_toStartOf="parent" |
Pietro Maggi | 641e9b7 | 2021-11-15 19:28:37 +0100 | [diff] [blame] | 90 | app:layout_constraintTop_toBottomOf="@+id/current_state" |
Diego Vela | a6f130c | 2021-10-06 15:44:10 -0700 | [diff] [blame] | 91 | app:layout_constraintBottom_toBottomOf="parent"/> |
Andrii Kulian | 6225ee6 | 2019-12-11 20:48:22 -0800 | [diff] [blame] | 92 | |
| 93 | </androidx.constraintlayout.widget.ConstraintLayout> |