Is there any method to set the default style for group of control of android like if i set color for checkboxes and also for edittext then it applies like in css
In my app i’m enabling and disabling some control conditionally so i want to change their color can i create a style that change color for all control without applying to each and specific.
I am not aware of such thing in Android but you can create a custom background like this:
Declare this file as say
backgrnd.xmlindrawablefolder and when you want to give background to any view just use:android:background="@drawable/backgrnd"Each view will then have same background like this.