I have this issue on my EditText and Button views, where I have a nice padding for them to space away from the text, but when I change the backgrou
Just to explain what's happening :
It's actually a feature. Layout drawables you might use as backgrounds can define a padding this way :
...
This padding will be set along with the new drawable background. When there's no padding, the default value is 0.
More info from an email written by Romain Guy: https://www.mail-archive.com/android-developers@googlegroups.com/msg09595.html