aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-01-31 22:12:37 +0100
committerChristian Schneppe <christian@pix-art.de>2017-01-31 22:12:37 +0100
commit1d8c8ea310ada403431f86b9b14af33a04778def (patch)
treeecbdfee5e38266219726e133705b7876e8fe1b16
parenta5dc9c11fa1b0f198c0e8f886fa8ee1553dd2e17 (diff)
show unread count in small rectangles instead of circles
-rw-r--r--src/main/res/drawable/rounded_rectangle.xml16
-rw-r--r--src/main/res/layout/conversation_list_row.xml2
2 files changed, 17 insertions, 1 deletions
diff --git a/src/main/res/drawable/rounded_rectangle.xml b/src/main/res/drawable/rounded_rectangle.xml
new file mode 100644
index 000000000..fab83eda9
--- /dev/null
+++ b/src/main/res/drawable/rounded_rectangle.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item>
+ <shape android:shape="rectangle">
+ <padding
+ android:bottom="2dp"
+ android:left="2dp"
+ android:right="2dp"
+ android:top="2dp" />
+ <solid android:color="@color/primary" />
+ <corners android:radius="6dp" />
+ </shape>
+ </item>
+
+</layer-list> \ No newline at end of file
diff --git a/src/main/res/layout/conversation_list_row.xml b/src/main/res/layout/conversation_list_row.xml
index 08d938ffc..195a14621 100644
--- a/src/main/res/layout/conversation_list_row.xml
+++ b/src/main/res/layout/conversation_list_row.xml
@@ -110,7 +110,7 @@
android:text="100"
android:textColor="@color/grey50"
android:textSize="?attr/TextSizeBody"
- android:background="@drawable/circle"
+ android:background="@drawable/rounded_rectangle"
android:visibility="gone"
android:paddingLeft="4dp"
android:paddingRight="4dp"