mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 23:47:26 +00:00
Add group settings UI polish.
This commit is contained in:

committed by
Cody Henthorne

parent
8e39267c42
commit
6a59974f89
@@ -18,9 +18,11 @@
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_message_section_header"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_height="52dp"
|
||||
android:gravity="bottom"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="@string/CustomNotificationsDialogFragment__messages"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"
|
||||
android:textColor="?attr/colorAccent"
|
||||
@@ -31,13 +33,13 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/custom_notifications_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_message_section_header">
|
||||
|
||||
@@ -50,7 +52,7 @@
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/CustomNotificationsDialogFragment__use_custom_notifications"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2" />
|
||||
android:textAppearance="@style/Signal.Text.Body" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/custom_notifications_enable_switch"
|
||||
@@ -68,13 +70,13 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/custom_notifications_sound_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_row">
|
||||
|
||||
@@ -88,7 +90,7 @@
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/CustomNotificationsDialogFragment__notification_sound"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2" />
|
||||
android:textAppearance="@style/Signal.Text.Body" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_sound_selection"
|
||||
@@ -96,6 +98,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="false"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
android:textColor="?attr/colorAccent"
|
||||
android:visibility="gone"
|
||||
tools:text="Default (Popcorn)"
|
||||
@@ -106,13 +109,13 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/custom_notifications_message_vibrate_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_sound_row">
|
||||
|
||||
@@ -126,7 +129,7 @@
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/CustomNotificationsDialogFragment__vibrate"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2" />
|
||||
android:textAppearance="@style/Signal.Text.Body" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_message_vibrate_selector"
|
||||
@@ -134,6 +137,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="false"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
android:textColor="?attr/colorAccent"
|
||||
android:visibility="gone"
|
||||
tools:text="Default"
|
||||
@@ -148,31 +152,42 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<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" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_call_settings_section_header"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="36dp"
|
||||
android:layout_height="52dp"
|
||||
android:gravity="bottom"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="@string/CustomNotificationsDialogFragment__call_settings"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"
|
||||
android:textColor="?attr/colorAccent"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_message_vibrate_row"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_divider"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/custom_notifications_ringtone_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_call_settings_section_header"
|
||||
@@ -186,7 +201,7 @@
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/CustomNotificationsDialogFragment__ringtone"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2" />
|
||||
android:textAppearance="@style/Signal.Text.Body" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_ringtone_selection"
|
||||
@@ -194,6 +209,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="false"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
android:textColor="?attr/colorAccent"
|
||||
tools:text="Default" />
|
||||
|
||||
@@ -202,13 +218,13 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/custom_notifications_call_vibrate_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/custom_notifications_ringtone_row"
|
||||
@@ -222,7 +238,7 @@
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/CustomNotificationsDialogFragment__vibrate"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2" />
|
||||
android:textAppearance="@style/Signal.Text.Body" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/custom_notifications_call_vibrate_selectior"
|
||||
@@ -230,6 +246,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="false"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
android:textColor="?attr/colorAccent"
|
||||
tools:text="Default" />
|
||||
|
||||
|
@@ -204,8 +204,10 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/group_mute_notifications_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/group_manage_fragment_row_height"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/group_manage_fragment_row_height"
|
||||
android:background="?selectableItemBackground"
|
||||
android:padding="16dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
@@ -213,8 +215,6 @@
|
||||
android:id="@+id/group_mute_notifications"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
||||
android:gravity="center_vertical|start"
|
||||
android:text="@string/ManageGroupActivity_mute_notifications"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/Signal.Text.Body"
|
||||
@@ -227,7 +227,6 @@
|
||||
android:id="@+id/group_mute_notifications_until"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
||||
android:textAppearance="@style/TextSecure.SubtitleTextStyle"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
@@ -108,7 +108,7 @@
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Signal.Body2.Bold">
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="fontFamily">sans-serif-medium</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Signal.Body1.Bold">
|
||||
|
Reference in New Issue
Block a user