Color of GradientDrawable not visible in SwipeToEditCallback in android
I am using the swipe to edit/delete feature for the recycler view and want the drawable to be curved so for the SwipeToDeleteCallback.kt I used GradientDrawable() as it allows rounded corners
package com.example.happyplaces.utils
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.drawable.ColorDrawable
import...