2019-12-20 16:12:22 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<FrameLayout 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:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?android:windowBackground">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2020-01-27 14:30:53 -04:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-01-28 13:40:54 -04:00
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
|
|
|
app:title="@string/CreateProfileActivity__profile" />
|
2020-01-27 14:30:53 -04:00
|
|
|
|
2019-12-20 16:12:22 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
2021-03-16 16:50:10 -04:00
|
|
|
style="@style/TextAppearance.Signal.Title2.Bold"
|
2019-12-20 16:12:22 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:text="@string/CreateProfileActivity_set_up_your_profile"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.0"
|
|
|
|
app:layout_constraintVertical_chainStyle="spread_inside" />
|
|
|
|
|
2020-11-09 09:12:28 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-12-20 16:12:22 -04:00
|
|
|
android:id="@+id/avatar_background"
|
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:src="@drawable/circle_tintable"
|
|
|
|
android:tint="@color/core_grey_05"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-28 13:40:54 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
|
|
app:layout_goneMarginTop="?attr/actionBarSize" />
|
2019-12-20 16:12:22 -04:00
|
|
|
|
2020-11-09 09:12:28 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-12-20 16:12:22 -04:00
|
|
|
android:id="@+id/avatar_placeholder"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:tint="@color/core_grey_75"
|
|
|
|
android:transitionName="avatar"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/avatar_background"
|
|
|
|
app:srcCompat="@drawable/ic_profile_outline_40" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/avatar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:contentDescription="@string/CreateProfileActivity_set_avatar_description"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/avatar_background" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name_preview"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/avatar"
|
|
|
|
tools:text="Name Preview" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/camera_icon"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginStart="56dp"
|
|
|
|
android:layout_marginTop="56dp"
|
|
|
|
android:background="@drawable/circle_tintable_padded"
|
|
|
|
android:cropToPadding="false"
|
|
|
|
android:elevation="4dp"
|
|
|
|
android:padding="14dp"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:backgroundTint="@color/camera_icon_background_tint"
|
2019-12-20 16:12:22 -04:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/avatar_background"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:srcCompat="@drawable/ic_camera_24" />
|
2019-12-20 16:12:22 -04:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/name_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/name_preview">
|
|
|
|
|
2020-06-17 15:57:31 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
2019-12-20 16:12:22 -04:00
|
|
|
android:id="@+id/given_name"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="13dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_weight="1"
|
2020-01-24 10:42:58 -05:00
|
|
|
android:autofillHints="given-name"
|
2019-12-20 16:12:22 -04:00
|
|
|
android:hint="@string/CreateProfileActivity_first_name_required"
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
android:singleLine="true" />
|
|
|
|
|
2020-11-23 16:03:09 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/mms_group_hint"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:text="@string/CreateProfileActivity_custom_mms_group_names_and_photos_will_only_be_visible_to_you"
|
|
|
|
android:textAppearance="@style/Signal.Text.Caption"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-17 15:57:31 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
2019-12-20 16:12:22 -04:00
|
|
|
android:id="@+id/family_name"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="13dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_weight="1"
|
2020-01-24 10:42:58 -05:00
|
|
|
android:autofillHints="family-name"
|
2019-12-20 16:12:22 -04:00
|
|
|
android:hint="@string/CreateProfileActivity_last_name_optional"
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
android:singleLine="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-06-09 14:12:52 -04:00
|
|
|
<org.thoughtcrime.securesms.util.views.LearnMoreTextView
|
2019-12-20 16:12:22 -04:00
|
|
|
android:id="@+id/description_text"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="11dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:text="@string/CreateProfileActivity_signal_profiles_are_end_to_end_encrypted"
|
|
|
|
android:textColor="@color/core_grey_60"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-01-14 13:05:03 -05:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/name_container"
|
2019-12-20 16:12:22 -04:00
|
|
|
app:layout_constraintVertical_bias="1.0" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<com.dd.CircularProgressButton
|
|
|
|
android:id="@+id/finish_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_marginEnd="32dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_marginTop="16dp"
|
2020-03-04 08:14:21 -05:00
|
|
|
android:background="@color/core_ultramarine"
|
2019-12-20 16:12:22 -04:00
|
|
|
android:enabled="false"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
app:cpb_colorIndicator="@color/white"
|
2020-03-04 08:14:21 -05:00
|
|
|
app:cpb_colorProgress="@color/core_ultramarine"
|
2019-12-20 16:12:22 -04:00
|
|
|
app:cpb_cornerRadius="4dp"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:cpb_selectorIdle="@drawable/progress_button_state"
|
2019-12-20 16:12:22 -04:00
|
|
|
app:cpb_textIdle="@string/CreateProfileActivity_next" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/reveal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-04 08:14:21 -05:00
|
|
|
android:background="@color/core_ultramarine"
|
2019-12-20 16:12:22 -04:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
</FrameLayout>
|