Im trying to blur the recyclerview and show a cardview above of the blur effect just like how instagram is doing
Edit :- Tried This for blurring the recyclerview , after using https://github.com/mmin18/RealtimeBlurView , but not sure if i have implemented it correctly or not
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_meme"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layerType="hardware" />
<com.github.mmin18.widget.RealtimeBlurView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:realtimeBlurRadius="20dp"
app:realtimeOverlayColor="#8000"/>
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:backgroundTint="@color/darkGray"
app:cardCornerRadius="30dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="30dp"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|top"
android:text="Unlock !"
android:textColor="@color/white"
android:textSize="30sp" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/cardview_dark_background"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:text="Unlock post video by watching an Ad"
android:textColor="@color/white"
android:textSize="20sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:backgroundTint="@color/white"
android:text="Watch Ad"
android:textColor="@color/black"
app:cornerRadius="20dp"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>