mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
space between sender name and text, tackles #170
This commit is contained in:
@@ -129,11 +129,11 @@
|
||||
android:id="@+id/conversation_item_body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
||||
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
||||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
||||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
||||
style="@style/Signal.Text.Body"
|
||||
android:paddingTop="@dimen/message_bubble_top_padding"
|
||||
android:textColor="?conversation_item_incoming_text_primary_color"
|
||||
android:textColorLink="?conversation_item_incoming_text_primary_color"
|
||||
app:scaleEmojis="true"
|
||||
|
||||
@@ -107,11 +107,11 @@
|
||||
android:id="@+id/conversation_item_body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
||||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
||||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
||||
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
||||
style="@style/Signal.Text.Body"
|
||||
android:paddingTop="@dimen/message_bubble_top_padding"
|
||||
android:textColor="?conversation_item_outgoing_text_primary_color"
|
||||
android:textColorLink="?conversation_item_outgoing_text_primary_color"
|
||||
app:scaleEmojis="true"
|
||||
|
||||
@@ -634,6 +634,14 @@ public class ConversationItem extends LinearLayout
|
||||
}
|
||||
|
||||
groupSenderHolder.setVisibility(groupSenderHolderVisibility);
|
||||
|
||||
boolean collapse = false;
|
||||
if(groupSenderHolderVisibility==VISIBLE && current.getType()==DcMsg.DC_MSG_TEXT) {
|
||||
collapse = true;
|
||||
}
|
||||
|
||||
int spacingTop = collapse? 0 /*2dp border come from the senderHolder*/ : readDimen(context, R.dimen.message_bubble_top_padding);
|
||||
ViewUtil.setPaddingTop(bodyText, spacingTop);
|
||||
}
|
||||
|
||||
private void setMessageShape(@NonNull DcMsg current) {
|
||||
|
||||
Reference in New Issue
Block a user