Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="24dp">
<TextView
android:id="@+id/title_sign_in"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/sign_in_with_camera"
android:textAlignment="center"
android:textAppearance="@style/Header16TextStyle"
android:textColor="?attr/textPrimary"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/sign_in_image"
android:layout_width="187dp"
android:layout_height="171dp"
android:layout_marginTop="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="fitXY"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/title_sign_in"
app:srcCompat="@drawable/ic_scan" />
<TextView
android:id="@+id/signInInstructions"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center"
tools:text="@string/sign_in_instructions"
android:textAlignment="center"
android:textColor="?attr/textPrimary"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sign_in_image" />
<com.google.android.material.button.MaterialButton
android:id="@+id/signInScanButton"
style="@style/PositiveButton"
android:text="@string/sign_in_ready_for_scan"
android:layout_marginVertical="24dp"
app:icon="@drawable/ic_qr"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/signInInstructions" />
<com.google.android.material.button.MaterialButton
android:id="@+id/signInEmailButton"
style="@style/NeutralButton"
android:text="@string/sign_in_with_email"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginVertical="12dp"
app:layout_constraintTop_toBottomOf="@id/signInScanButton"
app:layout_constraintBottom_toTopOf="@id/createAccount"/>
<TextView
android:id="@+id/createAccount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textAlignment="center"
android:textAppearance="@style/Body14TextStyle"
app:layout_constraintTop_toBottomOf="@id/signInEmailButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginVertical="24dp"
tools:text="@string/sign_in_create_account_text"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>