diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-01-31 22:12:37 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-01-31 22:12:37 +0100 |
commit | 1d8c8ea310ada403431f86b9b14af33a04778def (patch) | |
tree | ecbdfee5e38266219726e133705b7876e8fe1b16 | |
parent | a5dc9c11fa1b0f198c0e8f886fa8ee1553dd2e17 (diff) |
show unread count in small rectangles instead of circles
Diffstat (limited to '')
-rw-r--r-- | src/main/res/drawable/rounded_rectangle.xml | 16 | ||||
-rw-r--r-- | src/main/res/layout/conversation_list_row.xml | 2 |
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" |