I want to change the style of the Button
. And I add the style in style.xml
then set the @style/BaseButton
to every Button
.
Is there any way can do it better? Can I just set the theme to change all Button
or other views?
I know that I can add the theme to the style.xml
but unfortunately, if I set the attributes like @android:background
to the Button
, other views' backgrounds are set too.
So here are what I need:
- Set the style in only one(or some) place(s). No need to set style in
every layout and every
<Button />
. - Only the
Button
is influenced while other views stay where they are. - Can be changed easily.