<!-- res/drawable/border.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="7dp"
android:color="@color/black" />
<corners android:radius="4dp" /> <!-- Optional rounded corners -->
</shape>
<!-- code used to add border-->
playerRV.setBackgroundResource(R.drawable.border);
I added border to recycleview using xml drawable, I want to know is how to remove by java code