mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
8185ba793e
* For #9857: Creates text button style * Adds lint check * Fixes onboarding cards
78 lines
3.4 KiB
XML
78 lines
3.4 KiB
XML
<?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
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
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:textAppearance="@style/Header16TextStyle"
|
|
android:textColor="?primaryText"
|
|
android:textSize="18sp"
|
|
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="320dp"
|
|
android:layout_height="166dp"
|
|
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:textColor="?primaryText"
|
|
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="16dp"
|
|
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"
|
|
android:layout_margin="0dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/signInScanButton" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|