How can I change the font color, size and button color from a Java file in Eclipse, not from an XML file?
For font size you can write it as
tv.setTextSize(20.0f);
For font color you can write it as
tv.setTextColor(Color.BLUE);
For button background color you can write it as
btn.setBackgroundColor(Color.CYAN);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With