2017-08-08 23:37:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2019-02-13 19:52:55 +00:00
|
|
|
<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">
|
2017-10-02 01:11:42 +00:00
|
|
|
|
2019-02-13 19:52:55 +00:00
|
|
|
<org.thoughtcrime.securesms.components.InputAwareLayout
|
2017-08-08 23:37:15 +00:00
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-03-08 01:25:02 +00:00
|
|
|
<ScrollView
|
2019-02-13 19:52:55 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
2019-03-08 01:25:02 +00:00
|
|
|
<android.support.constraint.ConstraintLayout
|
2019-02-13 19:52:55 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
style="@style/Signal.Text.Headline.Registration"
|
|
|
|
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"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:text="@string/activity_profile_title"
|
2019-03-08 01:25:02 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/name"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/avatar_background"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:visibility="gone"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:src="@drawable/circle_tintable"
|
|
|
|
android:tint="@color/core_grey_05"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/name"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/name" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/avatar_placeholder"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:visibility="gone"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:src="@drawable/ic_profile_default"
|
|
|
|
android:tint="@color/core_grey_60"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/avatar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:visibility="gone"
|
2019-03-08 01:25:02 +00:00
|
|
|
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" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/camera_icon"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:visibility="gone"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_marginStart="35dp"
|
|
|
|
android:layout_marginTop="35dp"
|
|
|
|
android:cropToPadding="false"
|
|
|
|
android:src="@drawable/ic_profile_camera"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/avatar_background"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/avatar_background" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.LabeledEditText
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:layout_marginStart="49dp"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:layout_weight="1"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:hint="@string/activity_profile_display_name_edit_text_hint"
|
2019-03-08 01:25:02 +00:00
|
|
|
app:labeledEditText_background="?attr/conversation_background"
|
2019-07-16 07:09:15 +00:00
|
|
|
app:labeledEditText_label="@string/activity_profile_display_name_edit_text_description"
|
2019-03-08 01:25:02 +00:00
|
|
|
app:labeledEditText_textLayout="@layout/profile_name_text"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/description_text"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/emoji_toggle"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
2019-07-16 07:09:15 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/avatar_background"
|
2019-03-08 01:25:02 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiToggle
|
|
|
|
android:id="@+id/emoji_toggle"
|
|
|
|
android:layout_width="37dp"
|
|
|
|
android:layout_height="37dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginTop="9dp"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:layout_marginEnd="8dp"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:background="@drawable/touch_highlight_background"
|
|
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/name"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/name" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/description_text"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-07-16 07:09:15 +00:00
|
|
|
android:visibility="gone"
|
2019-03-08 01:25:02 +00:00
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
android:layout_marginEnd="32dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:gravity="center"
|
|
|
|
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"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/name"
|
|
|
|
app:layout_constraintVertical_bias="1.0" />
|
|
|
|
|
|
|
|
</android.support.constraint.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:background="@color/signal_primary"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
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/profile_create_activity__finish" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/skip_button"
|
|
|
|
style="@style/Button.Borderless.Registration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:text="@string/profile_create_activity__set_later"
|
|
|
|
android:textColor="@color/gray50" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiDrawer
|
2019-02-13 19:52:55 +00:00
|
|
|
android:id="@+id/emoji_drawer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.InputAwareLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/reveal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/textsecure_primary"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="gone"/>
|
2017-10-02 01:11:42 +00:00
|
|
|
|
|
|
|
</FrameLayout>
|