mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
81b7df0f99
* rework onboarding * implement default registration in InstantOnboardingActivity * dismiss signInDialog after button is selected * add footer options, implement "explore other options" button * properly handly permissions results * implement "scan QR" button * fix linter warnings * remove from observers in onDestroy() * handle DCACCOUNT and DCLOGIN in InstantOnboardingActivity instead of WelcomeActivity * fix identation in setProviderFromQr() * rename DEF_CHATMAIL_HOST to DEFAULT_CHATMAIL_HOST * Update src/org/thoughtcrime/securesms/InstantOnboardingActivity.java Co-authored-by: bjoern <r10s@b44t.com> * Update res/layout/instant_onboarding_activity.xml Co-authored-by: bjoern <r10s@b44t.com> * Update res/layout/instant_onboarding_activity.xml Co-authored-by: bjoern <r10s@b44t.com> * Update res/layout/instant_onboarding_activity.xml Co-authored-by: bjoern <r10s@b44t.com> --------- Co-authored-by: bjoern <r10s@b44t.com>
74 lines
2.4 KiB
XML
74 lines
2.4 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="10"
|
|
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/signup_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/onboarding_create_instant_account"/>
|
|
|
|
<Button
|
|
style="@style/ButtonSecondary"
|
|
android:id="@+id/signin_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/onboarding_alternative_logins"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:layout_weight="3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"/>
|
|
|
|
</LinearLayout>
|
|
|