1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <androidx.constraintlayout.widget.ConstraintLayout 24 android:id="@+id/content_container" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content"> 27 28 <ImageView 29 android:id="@+id/app_icon" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_marginTop="@dimen/sign_in_app_icon_top_margin" 33 android:adjustViewBounds="true" 34 android:maxHeight="@dimen/sign_in_app_icon_max_height" 35 android:scaleType="fitXY" 36 android:src="@drawable/ic_launcher" 37 app:layout_constraintStart_toStartOf="parent" 38 app:layout_constraintEnd_toEndOf="parent" 39 app:layout_constraintTop_toTopOf="parent" /> 40 41 <androidx.constraintlayout.widget.Guideline 42 android:id="@+id/start_guideline" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:orientation="vertical" 46 app:layout_constraintGuide_percent="@dimen/sign_in_horizontal_start_guideline" /> 47 48 <androidx.constraintlayout.widget.Guideline 49 android:id="@+id/end_guideline" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:orientation="vertical" 53 app:layout_constraintGuide_percent="@dimen/sign_in_horizontal_end_guideline" /> 54 55 <Button 56 android:id="@+id/sign_in_button" 57 style="@style/CarButton" 58 android:layout_width="0dp" 59 android:layout_height="wrap_content" 60 android:layout_marginTop="@dimen/sign_in_button1_top_margin_no_input" 61 android:text="@string/sign_in_button" 62 android:visibility="gone" 63 app:layout_constraintEnd_toEndOf="@id/end_guideline" 64 app:layout_constraintStart_toStartOf="@id/start_guideline" 65 app:layout_constraintTop_toBottomOf="@id/app_icon" 66 app:layout_constraintWidth_max="@dimen/sign_in_button_max_width" /> 67 68 <Button 69 android:id="@+id/permissions_button" 70 style="@style/CarButton" 71 android:layout_width="0dp" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="@dimen/sign_in_button1_top_margin_no_input" 74 android:text="@string/grant_permissions_button" 75 android:visibility="gone" 76 app:layout_constraintEnd_toEndOf="@id/end_guideline" 77 app:layout_constraintStart_toStartOf="@id/start_guideline" 78 app:layout_constraintTop_toBottomOf="@id/sign_in_button" 79 app:layout_constraintWidth_max="@dimen/sign_in_button_max_width" /> 80 81 <Button 82 android:id="@+id/notifications_button" 83 style="@style/CarButton" 84 android:layout_width="0dp" 85 android:layout_height="wrap_content" 86 android:layout_marginTop="@dimen/sign_in_button1_top_margin_no_input" 87 android:text="@string/notification_listener_button" 88 android:visibility="gone" 89 app:layout_constraintEnd_toEndOf="@id/end_guideline" 90 app:layout_constraintStart_toStartOf="@id/start_guideline" 91 app:layout_constraintTop_toBottomOf="@id/permissions_button" 92 app:layout_constraintWidth_max="@dimen/sign_in_button_max_width" /> 93 94 <TextView 95 android:id="@+id/help_text" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_marginTop="@dimen/sign_in_footer_top_margin" 99 android:layout_marginBottom="@dimen/sign_in_footer_bottom_margin" 100 android:adjustViewBounds="true" 101 android:gravity="center" 102 android:maxWidth="@dimen/sign_in_text_max_width" 103 android:textAppearance="@style/SecondaryText" 104 android:text="@string/sign_in_username_help_text" 105 app:layout_constraintBottom_toBottomOf="parent" 106 app:layout_constraintStart_toStartOf="parent" 107 app:layout_constraintEnd_toEndOf="parent" 108 app:layout_constraintTop_toBottomOf="@id/notifications_button" /> 109 110 </androidx.constraintlayout.widget.ConstraintLayout> 111 112</ScrollView> 113