mirror of https://github.com/M66B/FairEmail.git
117 lines
4.9 KiB
XML
117 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/scroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="12dp"
|
|
android:scrollbarStyle="outsideOverlay"
|
|
tools:context="eu.faircode.email.ActivitySetup">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/tvHint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_setup_gmail_rationale"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
android:textStyle="italic"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<Button
|
|
android:id="@+id/btnGrant"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:tag="disable"
|
|
android:text="@string/title_setup_grant"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvHint" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvGranted"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:drawableStart="@drawable/baseline_check_24"
|
|
android:drawablePadding="6dp"
|
|
android:text="@string/title_setup_done"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintBottom_toBottomOf="@id/btnGrant"
|
|
app:layout_constraintStart_toEndOf="@id/btnGrant"
|
|
app:layout_constraintTop_toTopOf="@id/btnGrant" />
|
|
|
|
<EditText
|
|
android:id="@+id/etName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:autofillHints="name"
|
|
android:hint="@string/title_identity_name"
|
|
android:imeOptions="actionNext"
|
|
android:inputType="textPersonName|textCapWords"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/btnGrant">
|
|
|
|
<requestFocus />
|
|
</EditText>
|
|
|
|
<Button
|
|
android:id="@+id/btnSelect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:tag="disable"
|
|
android:text="@string/title_setup_select_account"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/etName" />
|
|
|
|
<eu.faircode.email.ContentLoadingProgressBar
|
|
android:id="@+id/pbSelect"
|
|
style="@style/Base.Widget.AppCompat.ProgressBar"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="12dp"
|
|
android:indeterminate="true"
|
|
app:layout_constraintBottom_toBottomOf="@id/btnSelect"
|
|
app:layout_constraintStart_toEndOf="@id/btnSelect"
|
|
app:layout_constraintTop_toTopOf="@id/btnSelect" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvErrorTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/title_setup_error"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnSelect" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvError"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:autoLink="web"
|
|
android:text="error message"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?attr/colorWarning"
|
|
android:textIsSelectable="true"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvErrorTitle" />
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/grpError"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:constraint_referenced_ids="tvErrorTitle,tvError" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</ScrollView>
|