Answers for "how to give background color incode java android"

0

how to change background tint color programmatically android

Drawable buttonDrawable = button.getBackground();
    buttonDrawable = DrawableCompat.wrap(buttonDrawable);
    //the color is a direct color int and not a color resource
    DrawableCompat.setTint(buttonDrawable, Color.RED);
    button.setBackground(buttonDrawable);
Posted by: Guest on February-05-2021
-1

background color android

android:background="@color/white"
Posted by: Guest on July-18-2021

Code answers related to "how to give background color incode java android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language