1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2019 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 --> 17 18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 <androidx.constraintlayout.widget.ConstraintLayout 24 android:id="@+id/linearLayout" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent"> 27 28 <Button 29 android:id="@+id/freeze_frame_clear" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_marginEnd="16dp" 33 android:onClick="clearFreezeFrameButtonPress" 34 android:text="Clear Freeze Frame Data" 35 app:layout_constraintBottom_toTopOf="@+id/freeze_frame_data" 36 app:layout_constraintEnd_toEndOf="parent" 37 app:layout_constraintTop_toBottomOf="@+id/dtc_details"/> 38 <ProgressBar 39 android:id="@+id/freeze_frame_loading" 40 style="?android:attr/progressBarStyle" 41 android:layout_width="0dp" 42 android:layout_height="128dp" 43 android:visibility="invisible" 44 app:layout_constraintBottom_toBottomOf="parent" 45 app:layout_constraintEnd_toEndOf="parent" 46 app:layout_constraintHorizontal_bias="0.0" 47 app:layout_constraintStart_toStartOf="parent" 48 app:layout_constraintTop_toBottomOf="@+id/freeze_frame_title"/> 49 <TextView 50 android:id="@+id/dtc_details" 51 android:layout_width="0dp" 52 android:layout_height="wrap_content" 53 android:text="TextView" 54 android:textSize="24sp" 55 app:layout_constraintEnd_toEndOf="parent" 56 app:layout_constraintStart_toStartOf="parent" 57 app:layout_constraintTop_toBottomOf="@+id/toolbar"/> 58 <TextView 59 android:id="@+id/freeze_frame_title" 60 android:layout_width="0dp" 61 android:layout_height="wrap_content" 62 android:layout_marginTop="8dp" 63 android:text="Freeze Frame:" 64 android:textSize="36sp" 65 app:layout_constraintStart_toStartOf="parent" 66 app:layout_constraintTop_toBottomOf="@+id/dtc_details"/> 67 <Toolbar 68 android:id="@+id/toolbar" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:background="?android:attr/colorPrimary" 72 android:elevation="4dp" 73 android:theme="@android:attr/actionBarTheme"/> 74 <androidx.recyclerview.widget.RecyclerView 75 android:id="@+id/freeze_frame_data" 76 android:layout_width="match_parent" 77 android:layout_height="0dp" 78 android:layout_marginTop="8dp" 79 android:background="#00FF0000" 80 android:minHeight="72dp" 81 android:visibility="visible" 82 app:layout_constraintBottom_toBottomOf="parent" 83 app:layout_constraintEnd_toEndOf="@+id/freeze_frame_loading" 84 app:layout_constraintHeight_default="spread" 85 app:layout_constraintHeight_min="300dp" 86 app:layout_constraintStart_toStartOf="@+id/freeze_frame_loading" 87 app:layout_constraintTop_toBottomOf="@+id/freeze_frame_title"/> 88 </androidx.constraintlayout.widget.ConstraintLayout> 89</ScrollView>