1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2022 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:id="@+id/mainLayout" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="horizontal" 23 tools:context=".MainActivity"> 24 <TextView 25 android:id="@+id/show_history_text" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:text="@string/showing_history" 29 app:layout_constraintStart_toStartOf="parent" 30 app:layout_constraintTop_toTopOf="parent" /> 31 <TextView 32 android:id="@+id/config_name_text" 33 android:textStyle="bold" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_marginStart="8dp" 37 android:hint="@string/config_name_hint" 38 app:layout_constraintStart_toEndOf="@+id/show_history_text" 39 app:layout_constraintTop_toTopOf="parent" /> 40 <ScrollView 41 android:id="@+id/history_scroll" 42 android:layout_width="0dp" 43 android:layout_height="0dp" 44 android:orientation="vertical" 45 app:layout_constraintBottom_toTopOf="@+id/divider2" 46 app:layout_constraintEnd_toEndOf="parent" 47 app:layout_constraintStart_toStartOf="parent" 48 app:layout_constraintTop_toTopOf="@+id/barrier"> 49 <TextView 50 android:id="@+id/history_text" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:text="@string/history_hint" /> 54 </ScrollView> 55 <RadioGroup 56 android:id="@+id/radio_group" 57 android:layout_width="0dp" 58 android:layout_height="wrap_content" 59 android:layout_marginEnd="2dp" 60 android:orientation="horizontal" 61 app:layout_constraintEnd_toEndOf="parent" 62 app:layout_constraintTop_toBottomOf="@+id/barrier"> 63 <RadioButton 64 android:id="@+id/data_radio" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_marginTop="0dp" 68 android:layout_marginStart="0dp" 69 android:checked="true" 70 android:text="@string/data_radio" /> 71 <RadioButton 72 android:id="@+id/error_radio" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_marginTop="0dp" 76 android:layout_marginStart="8dp" 77 android:text="@string/error_radio" /> 78 </RadioGroup> 79 <ScrollView 80 android:id="@+id/log_scroll" 81 android:layout_width="0dp" 82 android:layout_height="0dp" 83 android:orientation="vertical" 84 app:layout_constraintBottom_toBottomOf="parent" 85 app:layout_constraintEnd_toEndOf="parent" 86 app:layout_constraintStart_toStartOf="parent" 87 app:layout_constraintTop_toBottomOf="@+id/divider2"> 88 <TextView 89 android:id="@+id/log_text" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:text="@string/log_hint" /> 93 </ScrollView> 94 <View 95 android:id="@+id/divider2" 96 android:layout_width="wrap_content" 97 android:layout_height="2dp" 98 android:background="@android:color/darker_gray" 99 app:layout_constraintBottom_toBottomOf="parent" 100 app:layout_constraintStart_toStartOf="parent" 101 app:layout_constraintTop_toTopOf="parent" 102 app:layout_constraintVertical_bias="0.70" /> 103 <androidx.constraintlayout.widget.Barrier 104 android:id="@+id/barrier" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 app:barrierDirection="bottom" 108 app:constraint_referenced_ids="config_name_text" /> 109 <Button 110 android:id="@+id/config_button" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:text="@string/config_button" 114 app:layout_constraintBottom_toBottomOf="parent" 115 app:layout_constraintEnd_toEndOf="parent" /> 116</androidx.constraintlayout.widget.ConstraintLayout>