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<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/relativeLayout" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:padding="12dp"> 25 26 <CheckBox 27 android:id="@+id/checkBox" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_marginTop="8dp" 31 android:layout_marginBottom="8dp" 32 android:layout_marginEnd="8dp" 33 app:layout_constraintBottom_toBottomOf="parent" 34 app:layout_constraintEnd_toEndOf="parent" 35 app:layout_constraintTop_toTopOf="parent"/> 36 37 <TextView 38 android:id="@+id/firstLine" 39 android:layout_width="fill_parent" 40 android:layout_height="wrap_content" 41 android:layout_alignWithParentIfMissing="true" 42 android:gravity="center_vertical" 43 android:text="Example application" 44 android:textSize="32sp" 45 app:layout_constraintBottom_toTopOf="@id/secondLine" 46 app:layout_constraintRight_toRightOf="parent" 47 app:layout_constraintTop_toTopOf="parent"/> 48 <TextView 49 android:id="@+id/dtc_number" 50 android:layout_width="wrap_content" 51 android:layout_height="0dp" 52 android:layout_marginEnd="8dp" 53 android:layout_centerHorizontal="true" 54 android:layout_centerVertical="true" 55 android:gravity="center" 56 android:text="TextView" 57 android:textSize="32sp" 58 app:layout_constraintBottom_toBottomOf="parent" 59 app:layout_constraintEnd_toStartOf="@+id/checkBox" 60 app:layout_constraintTop_toTopOf="parent" 61 app:layout_constraintVertical_bias="0.0"/> 62 <TextView 63 android:id="@+id/secondLine" 64 android:layout_width="fill_parent" 65 android:layout_height="wrap_content" 66 android:ellipsize="marquee" 67 android:singleLine="true" 68 android:text="Description" 69 android:textSize="24sp" 70 android:visibility="visible" 71 app:layout_constraintBottom_toBottomOf="parent" 72 app:layout_constraintRight_toRightOf="parent" 73 app:layout_constraintStart_toStartOf="parent"/> 74 75</androidx.constraintlayout.widget.ConstraintLayout>