mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
1523e7bc07
* add app icon to webxdc info messages * Update res/layout/conversation_item_update.xml Co-authored-by: Hocuri <hocuri@gmx.de> * check if info message type is DcMsg.DC_INFO_WEBXDC_INFO_MESSAGE before loading parent message --------- Co-authored-by: Hocuri <hocuri@gmx.de>
68 lines
2.7 KiB
XML
68 lines
2.7 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">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="3dp"
|
|
android:paddingBottom="3dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/app_icon"
|
|
android:layout_width="18sp"
|
|
android:layout_height="18sp"
|
|
android:layout_marginEnd="2dp"
|
|
android:layout_marginRight="2dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:scaleType="centerCrop"
|
|
android:visibility="gone" />
|
|
|
|
<!--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"
|
|
tools:text="Gwen Stacy added to group" />
|
|
|
|
</LinearLayout>
|
|
|
|
<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>
|