Commit 48d6ea4a authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix reactions layout size and spacing

parent c8a365ae
...@@ -13,6 +13,7 @@ import chat.rocket.core.model.isSystemMessage ...@@ -13,6 +13,7 @@ import chat.rocket.core.model.isSystemMessage
import ru.whalemare.sheetmenu.extension.inflate import ru.whalemare.sheetmenu.extension.inflate
import ru.whalemare.sheetmenu.extension.toList import ru.whalemare.sheetmenu.extension.toList
abstract class BaseViewHolder<T : BaseViewModel<*>>( abstract class BaseViewHolder<T : BaseViewModel<*>>(
itemView: View, itemView: View,
private val listener: ActionsListener private val listener: ActionsListener
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="2dp"
android:background="@drawable/rounded_background" android:background="@drawable/rounded_background"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -10,12 +14,12 @@ ...@@ -10,12 +14,12 @@
android:id="@+id/text_emoji" android:id="@+id/text_emoji"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1"
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingStart="4dp" android:paddingStart="4dp"
android:textColor="#868585" android:textColor="#868585"
android:textSize="14sp" android:textSize="16sp"
tools:text=":)" /> tools:text=":)" />
<TextView <TextView
...@@ -30,7 +34,7 @@ ...@@ -30,7 +34,7 @@
android:paddingStart="4dp" android:paddingStart="4dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:textColor="#868585" android:textColor="#868585"
android:textSize="14sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="12" /> tools:text="12" />
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
layout="@layout/layout_reactions" layout="@layout/layout_reactions"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="@+id/text_description"
app:layout_constraintStart_toStartOf="@+id/image_preview" app:layout_constraintStart_toStartOf="@+id/image_preview"
app:layout_constraintTop_toBottomOf="@+id/text_description" /> app:layout_constraintTop_toBottomOf="@+id/text_description" />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment