From 318a582b02fb7d78041752e1ef19137191a1c0af Mon Sep 17 00:00:00 2001 From: LooKeR Date: Fri, 29 Oct 2021 16:41:51 +0530 Subject: [PATCH] Fix: Background Color of some surfaces on old devices (Closes #73) --- src/main/kotlin/com/looker/droidify/screen/TabsFragment.kt | 1 - src/main/res/drawable/background_border.xml | 1 + src/main/res/layout/release_info.xml | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/looker/droidify/screen/TabsFragment.kt b/src/main/kotlin/com/looker/droidify/screen/TabsFragment.kt index 2612ce84..a151b70e 100644 --- a/src/main/kotlin/com/looker/droidify/screen/TabsFragment.kt +++ b/src/main/kotlin/com/looker/droidify/screen/TabsFragment.kt @@ -264,7 +264,6 @@ class TabsFragment : ScreenFragment() { this.adapter = adapter addItemDecoration(DividerItemDecoration(context, adapter::configureDivider)) background = context.getDrawableCompat(R.drawable.background_border) - backgroundTintList = context.getColorFromAttr(R.attr.colorSurface) elevation = resources.sizeScaled(4).toFloat() content.addView(this) val margins = resources.sizeScaled(8) diff --git a/src/main/res/drawable/background_border.xml b/src/main/res/drawable/background_border.xml index 42c4ef36..81a07801 100644 --- a/src/main/res/drawable/background_border.xml +++ b/src/main/res/drawable/background_border.xml @@ -1,4 +1,5 @@ + \ No newline at end of file diff --git a/src/main/res/layout/release_info.xml b/src/main/res/layout/release_info.xml index 76ac4725..1f308026 100644 --- a/src/main/res/layout/release_info.xml +++ b/src/main/res/layout/release_info.xml @@ -6,7 +6,6 @@ android:layout_marginHorizontal="12dp" android:layout_marginVertical="4dp" android:background="@drawable/background_border" - android:backgroundTint="?attr/colorSurface" android:gravity="center" android:orientation="horizontal"> @@ -114,7 +113,7 @@ android:layout_weight="1" app:cardBackgroundColor="?attr/colorSurface" app:cardCornerRadius="@dimen/shape_medium_corner" - app:cardElevation="0dp" + app:cardElevation="2dp" app:strokeWidth="0dp">