🔅السلام عليكم متابعينا أين ما كنتم انتظرونا 🔅مفاجأة حلوة جاي نصنع تطبيق متجر مشاريع 🔅خاص مشاريعنا ويتم نشره هنا وتنزل فيه جميع مشاريع وبلوكات وغيرها ❤️
كود بوتن جميل جداً يوضع في
اون كريت ( On Create )
لاتنسى تعديل button1 إلى اسم البوتن الذي تريد التعديل عليه❤️
int[] colors = {Color.parseColor("#edfafa"),Color.parseColor("#000000")};android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation.BR_TL, colors);gd.setCornerRadii(new float[] {100, 100, 100, 100, 100, 100, 100, 100});gd.setStroke((int)13, Color.parseColor("#ffffff"));
button1.setBackground(gd);
اون كريت ( On Create )
لاتنسى تعديل button1 إلى اسم البوتن الذي تريد التعديل عليه❤️
int[] colors = {Color.parseColor("#edfafa"),Color.parseColor("#000000")};android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation.BR_TL, colors);gd.setCornerRadii(new float[] {100, 100, 100, 100, 100, 100, 100, 100});gd.setStroke((int)13, Color.parseColor("#ffffff"));
button1.setBackground(gd);
وضع ظل للينير بواسطة هذا الكود
linear1.setElevation(25);
linear1.setElevation(25);
وضع ظل للبوتن بواسطة هذا الكود
button1.setElevation(25);
button1.setElevation(25);