I wish to have the default margin for EditText\'s be 10dp. Therefore, in my styles.xml file I set up the following:
Just in case it is useful for others, I'd like bring the answer by Oliv to another SO question here. I was trying to add margins to all buttons and found layout_margin does not work.
The theme:
The button style:
Here is button_background.xml where the answer by Oliv to another SO question is used to set the margin to 2dp: :
-
...