session-android/res/layout/registration_welcome_activity.xml

88 lines
3.6 KiB
XML
Raw Normal View History

2019-02-13 19:52:55 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-09-11 00:08:38 +00:00
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2019-02-13 19:52:55 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-07-23 00:35:03 +00:00
android:background="@color/loki_darkest_gray"
2019-02-13 19:52:55 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textView"
style="@style/Signal.Text.Headline.Registration"
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-07-16 07:09:15 +00:00
android:layout_marginStart="32dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="32dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:textAlignment="center"
android:text="@string/activity_landing_title" />
2019-02-13 19:52:55 +00:00
2019-08-28 06:00:24 +00:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textView"
app:layout_constraintEnd_toEndOf="parent"
2019-09-11 00:08:38 +00:00
app:layout_constraintBottom_toTopOf="@id/beta_terms_label"
2019-08-28 06:00:24 +00:00
android:orientation="vertical"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="128dp"
android:src="@drawable/ic_launcher_foreground" />
</LinearLayout>
2019-09-11 00:08:38 +00:00
<TextView
android:id="@+id/beta_terms_label"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginBottom="24dp"
style="@style/Signal.Text.Body"
android:text="@string/activity_landing_beta_terms"
android:textColor="@color/white"
android:textAlignment="center"
app:layout_constraintBottom_toTopOf="@+id/welcome_terms_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
2019-02-13 19:52:55 +00:00
<TextView
android:id="@+id/welcome_terms_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
style="@style/Signal.Text.Body"
2019-07-16 07:09:15 +00:00
android:text="@string/activity_landing_privacy_policy_button_title"
2019-02-13 19:52:55 +00:00
android:textColor="@color/signal_primary"
2019-09-11 00:08:38 +00:00
android:textAlignment="center"
2019-02-13 19:52:55 +00:00
app:layout_constraintBottom_toTopOf="@+id/welcome_continue_button"
app:layout_constraintEnd_toEndOf="@+id/welcome_continue_button"
app:layout_constraintStart_toStartOf="@+id/welcome_continue_button" />
<com.dd.CircularProgressButton
android:id="@+id/welcome_continue_button"
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:layout_marginBottom="54dp"
android:background="@color/signal_primary"
android:textColor="@color/white"
android:elevation="4dp"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="4dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/RegistrationActivity_continue"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>