FairEmail/app/src/main/res/layout/fragment_gmail.xml

206 lines
9.4 KiB
XML
Raw Normal View History

2019-09-21 19:53:54 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-04-12 15:45:20 +00:00
<eu.faircode.email.ScrollViewEx xmlns:android="http://schemas.android.com/apk/res/android"
2019-09-21 19:53:54 +00:00
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"
2019-12-03 07:45:26 +00:00
tools:context="eu.faircode.email.ActivitySetup">
2019-09-21 19:53:54 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2021-06-26 07:05:25 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_setup_oauth_rationale"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvPrivacy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:drawableTint="?android:attr/textColorLink"
android:text="@string/title_privacy_policy"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvTitle" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-12-08 10:41:02 +00:00
android:id="@+id/tvGrantHint"
2019-09-21 19:53:54 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-06-26 07:05:25 +00:00
android:layout_marginTop="12dp"
2019-09-21 19:53:54 +00:00
android:text="@string/title_setup_gmail_rationale"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
2021-06-26 07:05:25 +00:00
app:layout_constraintTop_toBottomOf="@id/tvPrivacy" />
2019-09-21 19:53:54 +00:00
<Button
android:id="@+id/btnGrant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2021-07-03 08:34:51 +00:00
android:drawableEnd="@drawable/twotone_check_24"
android:drawablePadding="6dp"
2019-09-21 19:53:54 +00:00
android:tag="disable"
android:text="@string/title_setup_grant"
app:layout_constraintStart_toStartOf="parent"
2019-12-08 10:41:02 +00:00
app:layout_constraintTop_toBottomOf="@id/tvGrantHint" />
2019-09-21 19:53:54 +00:00
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-09-21 19:53:54 +00:00
android:id="@+id/tvGranted"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
2020-09-28 07:18:56 +00:00
android:drawableStart="@drawable/twotone_check_24"
2019-09-21 19:53:54 +00:00
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" />
2020-03-18 07:38:04 +00:00
<eu.faircode.email.EditTextPlain
2019-09-21 19:53:54 +00:00
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 />
2020-03-18 07:38:04 +00:00
</eu.faircode.email.EditTextPlain>
2019-09-21 19:53:54 +00:00
2020-11-26 08:45:04 +00:00
<CheckBox
android:id="@+id/cbUpdate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_setup_oauth_update"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etName" />
2019-09-21 19:53:54 +00:00
<Button
android:id="@+id/btnSelect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2021-07-03 08:34:51 +00:00
android:drawableEnd="@drawable/twotone_account_circle_24"
android:drawablePadding="6dp"
2019-09-21 19:53:54 +00:00
android:tag="disable"
android:text="@string/title_setup_select_account"
app:layout_constraintStart_toStartOf="parent"
2020-11-26 08:45:04 +00:00
app:layout_constraintTop_toBottomOf="@id/cbUpdate" />
2019-09-21 19:53:54 +00:00
<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" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-12-08 10:41:02 +00:00
android:id="@+id/tvSelectHint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_setup_gmail_permissions"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2020-12-31 09:05:18 +00:00
android:textStyle="italic|bold"
2019-12-08 10:41:02 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnSelect" />
2020-12-02 18:07:34 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvAppPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2021-07-17 11:08:08 +00:00
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:drawableTint="?android:attr/textColorLink"
2020-12-02 18:07:34 +00:00
android:text="@string/title_setup_gmail_password"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSelectHint" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-11-15 08:33:43 +00:00
android:id="@+id/tvErrorTitle"
2019-09-21 19:53:54 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2019-11-15 08:33:43 +00:00
android:text="@string/title_setup_error"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
2020-12-02 18:07:34 +00:00
app:layout_constraintTop_toBottomOf="@id/tvAppPassword" />
2019-11-15 08:33:43 +00:00
2020-02-14 14:56:27 +00:00
<eu.faircode.email.FixedTextView
2019-11-15 08:33:43 +00:00
android:id="@+id/tvError"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-09-21 19:53:54 +00:00
android:autoLink="web"
2019-11-15 08:33:43 +00:00
android:text="error message"
2019-09-21 19:53:54 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="?attr/colorWarning"
android:textIsSelectable="true"
app:layout_constraintStart_toStartOf="parent"
2019-11-15 08:33:43 +00:00
app:layout_constraintTop_toBottomOf="@id/tvErrorTitle" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-12-08 10:41:02 +00:00
android:id="@+id/tvDraftsHint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_setup_gmail_drafts"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvError" />
2019-12-25 10:49:34 +00:00
<Button
android:id="@+id/btnSupport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2019-12-27 08:10:54 +00:00
android:backgroundTint="?attr/colorInfoBackground"
2021-07-03 08:34:51 +00:00
android:drawableEnd="@drawable/twotone_support_24"
android:drawablePadding="6dp"
android:drawableTint="?attr/colorInfoForeground"
2019-12-25 10:49:34 +00:00
android:text="@string/menu_faq"
2019-12-27 08:10:54 +00:00
android:textColor="?attr/colorInfoForeground"
2019-12-25 10:49:34 +00:00
android:textStyle="bold"
2020-06-13 12:28:03 +00:00
app:layout_constraintStart_toStartOf="parent"
2019-12-25 10:49:34 +00:00
app:layout_constraintTop_toBottomOf="@id/tvDraftsHint" />
2019-11-15 08:33:43 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpError"
android:layout_width="0dp"
android:layout_height="0dp"
2019-12-25 10:49:34 +00:00
app:constraint_referenced_ids="tvErrorTitle,tvError,tvDraftsHint,btnSupport" />
2019-09-21 19:53:54 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-04-12 15:45:20 +00:00
</eu.faircode.email.ScrollViewEx>