aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-04-16 19:16:02 +0200
committerChristian S <christian@pix-art.de>2016-04-16 19:16:02 +0200
commit9bb1f34579bb08e493073e974b4c4fc9d4723e59 (patch)
tree5d1cb94cf8d5dca4cb2be5b60ce023639aa6e30f /src
parentdc4a3d3094af92574d8aad878a393af8586e1b7e (diff)
also show sent/received images with rounded corners
Diffstat (limited to 'src')
-rw-r--r--src/main/res/layout/message_received.xml3
-rw-r--r--src/main/res/layout/message_sent.xml3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/res/layout/message_received.xml b/src/main/res/layout/message_received.xml
index c4188e6e0..1f04a2c3d 100644
--- a/src/main/res/layout/message_received.xml
+++ b/src/main/res/layout/message_received.xml
@@ -40,12 +40,13 @@
android:orientation="vertical"
android:padding="2dp">
- <ImageView
+ <com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/message_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="4dp"
+ app:riv_corner_radius="5dp"
android:adjustViewBounds="true"
android:background="@color/black87"
android:scaleType="centerCrop" />
diff --git a/src/main/res/layout/message_sent.xml b/src/main/res/layout/message_sent.xml
index 4452dbeb1..6381486d2 100644
--- a/src/main/res/layout/message_sent.xml
+++ b/src/main/res/layout/message_sent.xml
@@ -41,12 +41,13 @@
android:orientation="vertical"
android:padding="2dp">
- <ImageView
+ <com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/message_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="4dp"
+ app:riv_corner_radius="5dp"
android:adjustViewBounds="true"
android:background="@color/black87"
android:scaleType="centerCrop" />