Commit 1a5ae7d9 authored by Lucio Maciel's avatar Lucio Maciel

Fix username overflowing over other information

parent 1b94d61e
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="@+id/text_sender" /> app:layout_constraintTop_toTopOf="@+id/message_header" />
<LinearLayout <LinearLayout
android:id="@+id/new_messages_notif" android:id="@+id/new_messages_notif"
...@@ -88,68 +88,62 @@ ...@@ -88,68 +88,62 @@
android:background="@color/colorRed" /> android:background="@color/colorRed" />
</LinearLayout> </LinearLayout>
<TextView <LinearLayout
android:id="@+id/text_sender" android:id="@+id/message_header"
style="@style/Sender.Name.TextView" android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintLeft_toRightOf="@+id/layout_avatar" app:layout_constraintLeft_toRightOf="@+id/layout_avatar"
app:layout_constraintStart_toEndOf="@+id/layout_avatar" app:layout_constraintStart_toEndOf="@+id/layout_avatar"
app:layout_constraintTop_toBottomOf="@+id/day_marker_layout" app:layout_constraintEnd_toEndOf="parent"
tools:text="Ronald Perkins" /> app:layout_constraintTop_toBottomOf="@+id/day_marker_layout">
<TextView
android:id="@+id/text_sender"
style="@style/Sender.Name.TextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginEnd="8dp"
tools:text="User Name with long name" />
<TextView <TextView
android:id="@+id/text_message_time" android:id="@+id/text_message_time"
style="@style/Timestamp.TextView" style="@style/Timestamp.TextView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
app:layout_constraintBaseline_toBaselineOf="@+id/text_sender" tools:text="11:45 PM" />
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/text_sender"
tools:text="11:45 PM" />
<TextView <TextView
android:id="@+id/text_edit_indicator" android:id="@+id/text_edit_indicator"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:text="@string/msg_edited" android:text="@string/msg_edited"
android:textStyle="italic" android:textStyle="italic"
android:visibility="gone" android:visibility="gone"
app:layout_constraintBaseline_toBaselineOf="@+id/text_sender" tools:visibility="visible" />
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/text_message_time" <ImageView
tools:visibility="visible" /> android:id="@+id/image_star_indicator"
android:layout_width="14dp"
<ImageView android:layout_height="14dp"
android:id="@+id/image_star_indicator" android:layout_gravity="center_vertical"
android:layout_width="14dp" android:layout_marginStart="4dp"
android:layout_height="14dp" android:layout_marginTop="2dp"
android:layout_gravity="center_vertical" android:visibility="gone"
android:layout_marginStart="4dp" app:srcCompat="@drawable/ic_action_message_star_24dp"
android:layout_marginTop="2dp" tools:visibility="visible" />
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/text_sender" <ImageView
app:layout_constraintHorizontal_bias="0.5" android:id="@+id/read_receipt_view"
app:layout_constraintStart_toEndOf="@+id/text_edit_indicator" android:layout_width="24dp"
app:layout_constraintTop_toTopOf="@+id/text_sender" android:layout_height="24dp"
app:srcCompat="@drawable/ic_action_message_star_24dp" android:visibility="gone"
tools:visibility="visible" /> app:srcCompat="@drawable/ic_check_unread_24dp"
tools:visibility="visible" />
<ImageView </LinearLayout>
android:id="@+id/read_receipt_view"
android:layout_width="24dp"
android:layout_height="24dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/text_sender"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/image_star_indicator"
app:layout_constraintTop_toTopOf="@+id/text_sender"
app:srcCompat="@drawable/ic_check_unread_24dp"
tools:visibility="visible" />
<TextView <TextView
android:id="@+id/text_content" android:id="@+id/text_content"
...@@ -160,8 +154,8 @@ ...@@ -160,8 +154,8 @@
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="2dp" android:layout_marginBottom="2dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/text_sender" app:layout_constraintStart_toStartOf="@+id/message_header"
app:layout_constraintTop_toBottomOf="@+id/text_sender" app:layout_constraintTop_toBottomOf="@+id/message_header"
tools:text="This is a multiline chat message from Bertie that will take more than just one line of text. I have sure that everything is amazing!" /> tools:text="This is a multiline chat message from Bertie that will take more than just one line of text. I have sure that everything is amazing!" />
<include <include
......
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