How do I change button background and text color?

VIVEK KUMAR

How do I change button background and text color in Android?
Unable to use Attributes of android.

Vishal Sharma

Other than in XML you can also set color in class editor file like:

TextView.setColorFilter(Color.parseColor("#hexadecimal value"));

for Button:

Button.setBackgroundColor(Color.parseColor(“Hexadecimal value”));

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I change the ripple background color on Button?

How do I change the background color of a button in Kivy?

How do I change dynamically a background color of a WPF:s button

How to change text background color of a button in Android?

How to change button text color and background color while button is pressed

How do I change the color of text from a radio button?

How do I change my button color and text in Ionic Framework?

How do I change the color of a text with a button in Java Script?

How do I change the background color with JavaScript?

How do I change the background color of the body?

How do I change a background color in JS?

How do I change the background color in JavaScript?

How can I change the color of the text of a button?

How do I change the background of a site with a button?

How do I change the text-color of a button in HTML to a random color upon clicking it?

When I click the button, I want to change the page background color to another color, not black, how can I do it?

Python/ Kivy (no .kv): How do I change the background color of a button based on it's "__name__"?

How to change the background color of a button?

How do I change the text color in Swift?

Datatables - How do I change background and text color of a cell changed dynamically?

How can I change the background color of a button when clicked?

How to change Background color when i click a button

How can I change background color of button in SwiftUI?

How can i change of button background color on another form in xamarin

How could I change background color of a button from a spinner?

How can I change color of button's background

Android : change button text and background color

How to Change Button Background color on click of the button

How do i change the angular material md-primary button text color?