1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright 2019 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 17<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/constraint_settings_dialog" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <ScrollView 24 android:id="@+id/scroll_settings_dialog" 25 android:layout_width="match_parent" 26 android:layout_height="0dp" 27 android:layout_marginStart="8dp" 28 android:layout_marginTop="8dp" 29 android:layout_marginEnd="8dp" 30 android:scrollbarFadeDuration="0" 31 app:layout_constraintBottom_toTopOf="@id/button_start" 32 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintTop_toTopOf="parent"> 35 36 </ScrollView> 37 38 <Button 39 android:id="@+id/button_start" 40 style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginEnd="8dp" 44 android:layout_marginBottom="8dp" 45 android:text="@string/settings_single_go" 46 app:layout_constraintBottom_toBottomOf="parent" 47 app:layout_constraintEnd_toEndOf="parent" /> 48 49 <Button 50 android:id="@+id/button_cancel" 51 style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_marginEnd="8dp" 55 android:layout_marginBottom="8dp" 56 android:text="@string/settings_single_cancel" 57 app:layout_constraintBottom_toBottomOf="parent" 58 app:layout_constraintEnd_toStartOf="@+id/button_start" 59 app:layout_constraintTop_toTopOf="@+id/button_start" /> 60</androidx.constraintlayout.widget.ConstraintLayout>