Refine reaction details fragment.

master
Alex Hart 2020-07-31 16:49:52 -03:00 committed by GitHub
parent cb323ffb84
commit f69a0f0261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 24 deletions

View File

@ -4,10 +4,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="36dp"
android:layout_marginStart="6dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="4dp"
android:layout_marginBottom="8dp"
android:gravity="center"
android:orientation="horizontal">
@ -15,7 +11,7 @@
android:id="@+id/reactions_bottom_view_emoji_item_emoji"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginEnd="2dp"
android:layout_marginEnd="4dp"
android:gravity="center"
android:textStyle="bold"
app:emoji_forceCustom="true" />

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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="64dp">
android:layout_height="52dp">
<org.thoughtcrime.securesms.components.AvatarImageView
android:id="@+id/reactions_bottom_view_recipient_avatar"
@ -21,29 +20,27 @@
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:gravity="center_vertical"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
android:textColor="?title_text_color_primary"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/reactions_bottom_view_recipient_emoji"
app:layout_constraintStart_toEndOf="@id/reactions_bottom_view_recipient_avatar"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@id/reactions_bottom_view_recipient_avatar"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/full_names" />
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
android:id="@+id/reactions_bottom_view_recipient_emoji"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:gravity="center"
android:textSize="22dp"
app:emoji_forceCustom="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="SpUsage" />

View File

@ -6,5 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="8dp"
android:paddingBottom="8dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/reactions_bottom_sheet_dialog_fragment_recipient_item" />

View File

@ -5,13 +5,14 @@
android:layout_width="match_parent"
android:layout_height="@dimen/react_with_any_emoji_bottom_sheet_dialog_fragment_tabs_height"
android:layout_gravity="bottom"
android:background="?attr/emoji_tab_strip_background"
android:background="?attr/emoji_drawer_background"
app:layout_constraintTop_toTopOf="parent"
app:tabIndicatorColor="?colorAccent"
app:tabIndicatorGravity="top"
app:tabMinWidth="48dp"
app:tabMode="scrollable"
app:tabPadding="0dp"
app:tabPaddingBottom="0dp"
app:tabPaddingEnd="0dp"
app:tabPaddingStart="0dp"
app:tabPaddingTop="0dp" />
app:tabPaddingBottom="10dp"
app:tabPaddingEnd="12dp"
app:tabPaddingStart="12dp"
app:tabPaddingTop="10dp" />

View File

@ -8,6 +8,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
android:minWidth="32dp"
android:paddingStart="7dp"
android:paddingEnd="7dp"
android:paddingTop="5dp"
@ -18,21 +19,23 @@
android:id="@+id/reactions_pill_emoji"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16dp"
android:textSize="14dp"
tools:text="\u2764\ufe0f"
android:includeFontPadding="false"
app:autoSizeTextType="uniform"
app:emoji_forceCustom="true"
tools:ignore="SpUsage" />
<Space
android:id="@+id/reactions_pill_spacer"
android:layout_width="3dp"
android:layout_width="4dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/reactions_pill_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14dp"
android:textSize="12dp"
android:fontFamily="sans-serif-medium"
android:textColor="?reactions_pill_text_color"
tools:text="23"

View File

@ -152,7 +152,7 @@
<dimen name="picture_in_picture_gesture_helper_pip_height">160dp</dimen>
<dimen name="react_with_any_emoji_bottom_sheet_dialog_fragment_min_height">340dp</dimen>
<dimen name="react_with_any_emoji_bottom_sheet_dialog_fragment_tabs_height">36dp</dimen>
<dimen name="react_with_any_emoji_bottom_sheet_dialog_fragment_tabs_height">40dp</dimen>
<dimen name="group_manage_fragment_card_vertical_padding">12dp</dimen>
<dimen name="group_manage_fragment_row_height">52dp</dimen>