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
For font color you can write it as
For button background color you can write it as
In the “
Inherited XML Attributes” paragraph of the official documentation you can see either XML attributes (that you can change from XML) or related methods (which you can use in your Java code).
Others already posted answers on how to do it in Java, but I guess these could help you as well.
How to do it in XML: