گرد کردن باتون (آموزش پیکو)
android.graphics.drawable.GradientDrawable AD = new android.graphics.drawable.GradientDrawable();
AD.setColor(Color.parseColor("#FFD54F"));
AD.setCornerRadii(new float[] { 50, 50, 50, 50, 50, 50, 50, 50 });
AD.setStroke(10, Color.parseColor("#FF3300"));
android.graphics.drawable.RippleDrawable AD_RE = new android.graphics.drawable.RippleDrawable(new android.content.res.ColorStateList(new int[][]{new int[]{}}, new int[]{ Color.parseColor("#FF3300")}), AD, null);
button1.setBackground(AD_RE);
if(Build.VERSION.SDK_INT >= 50) { button1.setElevation(7f); }
همه توضیحات ...