How do you implement a ScrollView inside the CardView that appears/disappears on click. The idea is to show a long text on the CardView inside a ScrolllView.
I tried this inside onBindViewHolder() as mentioned below. The ScrollView becomes visible on a click and does not disappear on further clicks.
How do you implement a ScrollView inside the CardView that appears/disappears on click. The idea is to show a long text on the CardView inside a ScrolllView.
I tried this inside onBindViewHolder() as mentioned below. The ScrollView becomes visible on a click and does not disappear on further clicks.
This is my CardView Layout:- <?xml version="1.0" encoding="utf-8"?> <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?attr/selectableItemBackground" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@android:color/white" app:cardCornerRadius="8dp" app:cardPreventCornerOverlap="false" app:cardUseCompatPadding="true">