From c9245122f539c5899ca8ba1f029fcb327c48f302 Mon Sep 17 00:00:00 2001 From: X1nto Date: Sun, 14 Feb 2021 16:54:44 +0400 Subject: [PATCH] added an outline to sponsor buttons --- .../vanced/manager/adapter/SponsorAdapter.kt | 3 +- .../main/res/drawable/sponsor_background.xml | 38 +++++++++++++++++++ app/src/main/res/layout/view_sponsor.xml | 15 ++++++-- 3 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/drawable/sponsor_background.xml diff --git a/app/src/main/java/com/vanced/manager/adapter/SponsorAdapter.kt b/app/src/main/java/com/vanced/manager/adapter/SponsorAdapter.kt index b7c7d8a0..430348e0 100644 --- a/app/src/main/java/com/vanced/manager/adapter/SponsorAdapter.kt +++ b/app/src/main/java/com/vanced/manager/adapter/SponsorAdapter.kt @@ -12,8 +12,7 @@ import com.vanced.manager.ui.viewmodels.HomeViewModel class SponsorAdapter( private val context: Context, - private val viewModel: HomeViewModel, - //private val json: ObservableField + private val viewModel: HomeViewModel ) : RecyclerView.Adapter() { private val brave = SponsorModel( diff --git a/app/src/main/res/drawable/sponsor_background.xml b/app/src/main/res/drawable/sponsor_background.xml new file mode 100644 index 00000000..d7084153 --- /dev/null +++ b/app/src/main/res/drawable/sponsor_background.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/view_sponsor.xml b/app/src/main/res/layout/view_sponsor.xml index 12d2dbd8..0aa03cb2 100644 --- a/app/src/main/res/layout/view_sponsor.xml +++ b/app/src/main/res/layout/view_sponsor.xml @@ -11,9 +11,10 @@ app:cardCornerRadius="12dp" app:cardElevation="0dp"> - @@ -30,10 +36,13 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginTop="8dp" + android:layout_marginBottom="14dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" tools:text="Brave" android:textColor="?colorLinkImage" /> - + \ No newline at end of file