2020-04-30 15:38:58 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/custom_notifications_toolbar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
|
|
|
app:title="@string/CustomNotificationsDialogFragment__custom_notifications" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_message_section_header"
|
|
|
|
android:layout_width="0dp"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="52dp"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="8dp"
|
2020-04-30 15:38:58 -03:00
|
|
|
android:text="@string/CustomNotificationsDialogFragment__messages"
|
2020-08-26 15:59:34 -03:00
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
2020-04-30 15:38:58 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_toolbar" />
|
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/custom_notifications_row"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="56dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-04-30 15:38:58 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-16 17:42:54 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_message_section_header">
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_enable_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/CustomNotificationsDialogFragment__use_custom_notifications"
|
|
|
|
android:textAlignment="viewStart"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/custom_notifications_enable_switch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/custom_notifications_enable_label"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/custom_notifications_enable_label"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/custom_notifications_enable_label" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/custom_notifications_sound_row"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="56dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-04-30 15:38:58 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-16 17:42:54 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_row">
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_sound_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:enabled="false"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/CustomNotificationsDialogFragment__notification_sound"
|
|
|
|
android:textAlignment="viewStart"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_sound_selection"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Default (Popcorn)"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-06-19 13:08:54 -03:00
|
|
|
android:id="@+id/custom_notifications_message_vibrate_row"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="56dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-04-30 15:38:58 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-16 17:42:54 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_sound_row">
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<TextView
|
2020-06-19 13:08:54 -03:00
|
|
|
android:id="@+id/custom_notifications_message_vibrate_label"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:enabled="false"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/CustomNotificationsDialogFragment__vibrate"
|
|
|
|
android:textAlignment="viewStart"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
2020-06-19 13:08:54 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_message_vibrate_selector"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-06-19 13:08:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Default"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/custom_notifications_vibrate_switch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-11-11 14:37:44 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/custom_notifications_divider"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="12dp"
|
|
|
|
android:background="@drawable/preference_divider"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_message_vibrate_row" />
|
|
|
|
|
2020-04-30 15:38:58 -03:00
|
|
|
<TextView
|
2020-06-16 17:42:54 -03:00
|
|
|
android:id="@+id/custom_notifications_call_settings_section_header"
|
2020-04-30 15:38:58 -03:00
|
|
|
android:layout_width="0dp"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="52dp"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="8dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:text="@string/CustomNotificationsDialogFragment__call_settings"
|
2020-08-26 15:59:34 -03:00
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
2020-04-30 15:38:58 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-06-16 17:42:54 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_divider"
|
2020-06-16 17:42:54 -03:00
|
|
|
tools:visibility="visible" />
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/custom_notifications_ringtone_row"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="56dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-04-30 15:38:58 -03:00
|
|
|
android:visibility="gone"
|
2020-06-16 17:42:54 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_call_settings_section_header"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/CustomNotificationsDialogFragment__ringtone"
|
|
|
|
android:textAlignment="viewStart"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/custom_notifications_ringtone_selection"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
tools:text="Default" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/custom_notifications_call_vibrate_row"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:layout_height="56dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/custom_notifications_ringtone_row"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/CustomNotificationsDialogFragment__vibrate"
|
|
|
|
android:textAlignment="viewStart"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
|
|
|
<TextView
|
2020-06-19 13:08:54 -03:00
|
|
|
android:id="@+id/custom_notifications_call_vibrate_selectior"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
2020-11-11 14:37:44 -04:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
tools:text="Default" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-30 15:38:58 -03:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|