From b6637cf73401c409d56d930fca6e8f51adfe2820 Mon Sep 17 00:00:00 2001 From: babaliaris Date: Sat, 14 Nov 2020 13:31:11 +0200 Subject: [PATCH] Added rounded corners background --- app/src/main/res/drawable/bookmark_row_bg.xml | 7 ++++ .../res/layout/fragment_bookmarks_row.xml | 34 +++++++++++-------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/drawable/bookmark_row_bg.xml diff --git a/app/src/main/res/drawable/bookmark_row_bg.xml b/app/src/main/res/drawable/bookmark_row_bg.xml new file mode 100644 index 00000000..acac08e0 --- /dev/null +++ b/app/src/main/res/drawable/bookmark_row_bg.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_bookmarks_row.xml b/app/src/main/res/layout/fragment_bookmarks_row.xml index 07ca07b2..4ca5f8bc 100644 --- a/app/src/main/res/layout/fragment_bookmarks_row.xml +++ b/app/src/main/res/layout/fragment_bookmarks_row.xml @@ -12,47 +12,51 @@ android:id="@+id/bookmark_dragable" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" + android:background="@drawable/bookmark_row_bg" android:clickable="true" android:focusable="true" android:gravity="center_vertical" - android:orientation="horizontal"> + android:orientation="horizontal" + android:layout_marginTop="24dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + > + android:textSize="18sp" /> + android:paddingStart="6dp" + android:paddingTop="3dp" + android:paddingEnd="6dp" + android:paddingBottom="3dp" + app:srcCompat="@drawable/ic_notification_on" /> + android:paddingStart="6dp" + android:paddingTop="3dp" + android:paddingEnd="6dp" + android:paddingBottom="3dp" + app:srcCompat="@drawable/ic_delete_accent_24dp" /> \ No newline at end of file