Answers for "how to code to change color of background of app in android studio night mode"

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

how to set default color in android studio

<style name="LibraryTheme.TextAppearance">
    <item name="android:textColor">@color/color</item>
    <item name="colorControlNormal">@color/color</item>
    <item name="android:textColorHint">@color/color</item>
    <item name="colorControlActivated">@color/color</item>
    <item name="colorControlHighlight">@color/color</item>
</style>
Posted by: Guest on January-14-2022

Code answers related to "how to code to change color of background of app in android studio night mode"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language