From c2eddf43506a20e2e87a9d8457ab78eec7dd351a Mon Sep 17 00:00:00 2001 From: "Sumru.kars" Date: Thu, 13 Jun 2024 10:28:55 +0300 Subject: [PATCH] fix slidable content scale & height problems --- .../showcase/ui/slidablecontent/SlidableContentAdapter.kt | 8 +++++++- library/src/main/res/layout/item_slidable_content.xml | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/library/src/main/java/com/trendyol/showcase/ui/slidablecontent/SlidableContentAdapter.kt b/library/src/main/java/com/trendyol/showcase/ui/slidablecontent/SlidableContentAdapter.kt index 40d4fcf..94c0d16 100644 --- a/library/src/main/java/com/trendyol/showcase/ui/slidablecontent/SlidableContentAdapter.kt +++ b/library/src/main/java/com/trendyol/showcase/ui/slidablecontent/SlidableContentAdapter.kt @@ -8,6 +8,7 @@ import androidx.recyclerview.widget.RecyclerView import com.trendyol.showcase.databinding.ItemSlidableContentBinding import com.trendyol.showcase.ui.loadImage import com.trendyol.showcase.ui.setTextSizeInSp +import com.trendyol.showcase.util.getHeightInPixels internal class SlidableContentAdapter(private val slidableContentList: List) : RecyclerView.Adapter() { @@ -57,9 +58,14 @@ internal class SlidableContentAdapter(private val slidableContentList: List