#Sketchware
⚠Note:change "imageview1"with your id.
Code :
android.graphics.drawable.GradientDrawable gd = new
android.graphics.drawable.GradientDrawable();
gd.setColor(Color.parseColor("#ffffffff"));
gd.setCornerRadius(10);
gd.setStroke (2, Color.parseColor("#BDBDBD"));
imageview1.setBackground(gd);
Sketchware