aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/message_content.xml
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-09-24 20:36:42 +0200
committerChristian Schneppe <christian@pix-art.de>2017-09-24 20:36:42 +0200
commit1f91140e949bfe3d1c7a053527b76a30d24ac294 (patch)
tree0b2d22e49d457d66a294472da3cba8b03642f909 /src/main/res/layout/message_content.xml
parent7cf31ad64589d956e02a1c751192d583fd5c8cc4 (diff)
removed duplicate code from message bubble layouts
Diffstat (limited to '')
-rw-r--r--src/main/res/layout/message_content.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/res/layout/message_content.xml b/src/main/res/layout/message_content.xml
new file mode 100644
index 000000000..b073868ad
--- /dev/null
+++ b/src/main/res/layout/message_content.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+xmlns:app="http://schemas.android.com/apk/res-auto">
+
+<com.makeramen.roundedimageview.RoundedImageView
+ android:id="@+id/message_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="4dp"
+ android:layout_marginTop="2dp"
+ android:adjustViewBounds="true"
+ android:longClickable="true"
+ android:maxHeight="500dp"
+ android:maxWidth="500dp"
+ android:scaleType="centerCrop"
+ app:riv_border_color="@color/grey500"
+ app:riv_border_width="1dp"
+ app:riv_corner_radius="5dp" />
+
+<de.pixart.messenger.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="@color/dark"
+ android:textColorHighlight="@color/grey800"
+ android:textColorLink="@color/dark"
+ android:textSize="?attr/TextSizeBody"
+ app:emojiSize="28sp" />
+
+<Button
+ android:id="@+id/download_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:longClickable="true"
+ android:visibility="gone" />
+</merge> \ No newline at end of file