Horje
how to create shapes for background programmatically Code Example
how to create shapes for background programmatically
public static void customView(View v, int backgroundColor, int borderColor) {
    GradientDrawable shape = new GradientDrawable();
    shape.setShape(GradientDrawable.RECTANGLE);
    shape.setCornerRadii(new float[] { 8, 8, 8, 8, 0, 0, 0, 0 });
    shape.setColor(backgroundColor);
    shape.setStroke(3, borderColor);
    v.setBackground(shape);
}




Whatever

Related
Accesing element using tag Code Example Accesing element using tag Code Example
characters Code Example characters Code Example
can i see load balancer logs Code Example can i see load balancer logs Code Example
samba the specified network password is incorrect Code Example samba the specified network password is incorrect Code Example
sound production softwares Code Example sound production softwares Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7