mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
b36cfcabe9
ppl try already now to set up a second device from the welcome screen. however, end up in logging into their email account again, creating issues with keys and more. a dedicated "Add as Second Devies" button targets this UX issue by offering a clear path for setting up a second device. moreover, the string "Scan Invitation Code" is used again (as on all releases), this string is used quite a bit in different handouts, changing that would worsen UX as well. the "Restore from Backup is moved down, if you really use this path, finding the button is the smallest issue. the different layout of the button makes clear, that this is not the preferred way to set up a new account (but sure, to restore a backup :)
92 lines
3.1 KiB
XML
92 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center_horizontal"
|
|
tools:context=".WelcomeActivity">
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:layout_weight="3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/welcome_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="100dp"
|
|
android:layout_weight="14"
|
|
android:gravity="bottom"
|
|
android:src="@drawable/intro1"
|
|
android:paddingLeft="32dp"
|
|
android:paddingRight="32dp"
|
|
tools:ignore="contentDescription"/>
|
|
|
|
<TextView
|
|
android:id="@+id/welcome_header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:padding="8dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:text="@string/welcome_chat_over_email"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold"/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:gravity="center_horizontal">
|
|
|
|
<Button
|
|
style="@style/ButtonPrimary"
|
|
android:id="@+id/login_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/login_header"/>
|
|
|
|
<Button
|
|
style="@style/ButtonSecondary"
|
|
android:id="@+id/add_as_second_device_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/multidevice_receiver_title"/>
|
|
|
|
<Button
|
|
style="@style/ButtonSecondary"
|
|
android:id="@+id/scan_qr_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:text="@string/scan_invitation_code"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:layout_weight="3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/backup_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="22dp"
|
|
android:gravity="center"
|
|
android:text="@string/import_backup_title"
|
|
android:textColor="?attr/secondary_button_fg"
|
|
android:textSize="15sp"/>
|
|
|
|
</LinearLayout>
|
|
|