removed duplicate code from message bubble layouts
This commit is contained in:
parent
acc78145db
commit
9733003d0f
|
@ -0,0 +1,33 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/message_image"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:background="@color/black87"
|
||||||
|
android:longClickable="true"
|
||||||
|
android:scaleType="centerCrop"/>
|
||||||
|
|
||||||
|
<eu.siacs.conversations.ui.widget.CopyTextView
|
||||||
|
android:id="@+id/message_body"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:autoLink="web"
|
||||||
|
android:longClickable="true"
|
||||||
|
android:textColor="?attr/color_text_primary"
|
||||||
|
android:textColorHighlight="@color/grey500"
|
||||||
|
android:textColorLink="@color/black87"
|
||||||
|
android:textSize="?attr/TextSizeBody"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/download_button"
|
||||||
|
style="?android:attr/buttonStyleSmall"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:longClickable="true"
|
||||||
|
android:visibility="gone"/>
|
||||||
|
</merge>
|
|
@ -38,35 +38,7 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="2dp">
|
android:padding="2dp">
|
||||||
|
|
||||||
<ImageView
|
<include layout="@layout/message_content"/>
|
||||||
android:id="@+id/message_image"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:background="@color/black87"
|
|
||||||
android:scaleType="centerCrop" />
|
|
||||||
|
|
||||||
<eu.siacs.conversations.ui.widget.CopyTextView
|
|
||||||
android:id="@+id/message_body"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:autoLink="web"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:textColorLink="@color/white"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textColorHighlight="@color/grey800"
|
|
||||||
android:textSize="?attr/TextSizeBody" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/download_button"
|
|
||||||
style="?android:attr/buttonStyleSmall"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
@ -39,35 +39,7 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="2dp">
|
android:padding="2dp">
|
||||||
|
|
||||||
<ImageView
|
<include layout="@layout/message_content"/>
|
||||||
android:id="@+id/message_image"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:background="@color/black87"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:scaleType="centerCrop" />
|
|
||||||
|
|
||||||
<eu.siacs.conversations.ui.widget.CopyTextView
|
|
||||||
android:id="@+id/message_body"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:autoLink="web"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:textColorLink="@color/black87"
|
|
||||||
android:textColor="?attr/color_text_primary"
|
|
||||||
android:textColorHighlight="@color/grey500"
|
|
||||||
android:textSize="?attr/TextSizeBody" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/download_button"
|
|
||||||
style="?android:attr/buttonStyleSmall"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:longClickable="true"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
Loading…
Reference in New Issue