From 4aae6e90be7b9e0b7f93785381202985f50c182f Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Sun, 16 Jan 2022 13:39:01 +0100 Subject: [PATCH] Using pin icons in geofav list Because circle conventionally is used for user with missing avatar --- .idea/misc.xml | 1 + .../res/drawable/category_listitem_background.xml | 13 ------------- app/src/main/res/drawable/ic_list_pin.xml | 5 +++++ app/src/main/res/layout/item_geofav.xml | 5 +++-- 4 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 app/src/main/res/drawable/category_listitem_background.xml create mode 100644 app/src/main/res/drawable/ic_list_pin.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index ab4aa6d..0a57690 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -7,6 +7,7 @@ + diff --git a/app/src/main/res/drawable/category_listitem_background.xml b/app/src/main/res/drawable/category_listitem_background.xml deleted file mode 100644 index 94505d8..0000000 --- a/app/src/main/res/drawable/category_listitem_background.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_list_pin.xml b/app/src/main/res/drawable/ic_list_pin.xml new file mode 100644 index 0000000..9cef83d --- /dev/null +++ b/app/src/main/res/drawable/ic_list_pin.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/item_geofav.xml b/app/src/main/res/layout/item_geofav.xml index 6c3a50e..0c2e197 100644 --- a/app/src/main/res/layout/item_geofav.xml +++ b/app/src/main/res/layout/item_geofav.xml @@ -33,8 +33,9 @@ android:layout_height="64dp" android:layout_marginStart="4dp" android:layout_weight="0" - android:background="@drawable/category_listitem_background" - android:gravity="center" + android:background="@drawable/ic_list_pin" + android:gravity="top|center" + android:paddingTop="5dp" android:textSize="28dp" android:textAllCaps="true" android:textColor="@color/white"/>