How to set style(small and large) to Button programmable way ?
Is it possible ?
I can set the style to the Button from xml resource (like styte= ?android:attr/buttonStyleSmall). But I don't know how set it programmable way.
Thanks in advance.
You can do it like that:
Button button = new Button(this, null, android.R.attr.buttonStyleSmall);
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