[go: nahoru, domu]

blob: 46ade368574f8decd6c8d1736df77b93b9678a41 [file] [log] [blame]
Andrii Kulian6225ee62019-12-11 20:48:22 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
Diego Velaa57aa282021-10-14 16:30:12 -07003 Copyright 2021 The Android Open Source Project
Andrii Kulian6225ee62019-12-11 20:48:22 -08004
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 Velaa57aa282021-10-14 16:30:12 -070025 tools:context="androidx.window.sample.DisplayFeaturesNoConfigChangeActivity">
Andrii Kulian6225ee62019-12-11 20:48:22 -080026
27 <FrameLayout
Pietro Maggi641e9b72021-11-15 19:28:37 +010028 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 Kulian6225ee62019-12-11 20:48:22 -080046
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 Kulian6225ee62019-12-11 20:48:22 -080081 </LinearLayout>
82
Diego Velaa6f130c2021-10-06 15:44:10 -070083 <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 Kulian6225ee62019-12-11 20:48:22 -080088 app:layout_constraintEnd_toEndOf="parent"
Andrii Kulian6225ee62019-12-11 20:48:22 -080089 app:layout_constraintStart_toStartOf="parent"
Pietro Maggi641e9b72021-11-15 19:28:37 +010090 app:layout_constraintTop_toBottomOf="@+id/current_state"
Diego Velaa6f130c2021-10-06 15:44:10 -070091 app:layout_constraintBottom_toBottomOf="parent"/>
Andrii Kulian6225ee62019-12-11 20:48:22 -080092
93</androidx.constraintlayout.widget.ConstraintLayout>