Files
arcanechat-android/res/layout/conversation_item_update.xml
T
B. Petersen 1cb7d93417 show more info messages by adapting spacing to the overall layout
the spacing was just a bit too much,
eg. bubble spacing is 6dp atop and abottom.

this was always not-so-good, however, as info-messages are
more in use by webxdc now, it gets more visible.

the new spacing roughly matches the layout on ios.
2022-06-06 12:16:20 +02:00

50 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.ConversationUpdateItem
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/conversation_item_background"
android:focusable="true"
android:gravity="center"
android:orientation="vertical"
android:paddingTop="5dp"
android:paddingBottom="7dp"
android:paddingLeft="28dp"
android:paddingRight="28dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/conversation_item_update_background"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"
android:orientation="vertical">
<!--Links should be clickable, see https://github.com/deltachat/deltachat-android/issues/1546-->
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
android:id="@+id/conversation_update_body"
style="@style/Delta.Text.UpdateHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="web"
android:gravity="center"
android:textColor="?attr/conversation_item_update_text_color"
android:textColorLink="?attr/conversation_item_update_text_color"
android:paddingTop="3dp"
android:paddingBottom="3dp"
tools:text="Gwen Stacy added to group" />
<ImageView android:id="@+id/delivery_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginBottom="6dp"
android:tint="?attr/conversation_item_update_text_color"
android:visibility="gone" />
</LinearLayout>
</org.thoughtcrime.securesms.ConversationUpdateItem>