Fix custom button icon making touch and animation area smaller [1/3]

*and allow to set a custom scaling value for custom button icons

this fixes http://jira.dirtyunicorns.com/browse/DU11-422

Custom images and icon pack icons usually have a canvas size equal to the image size itself.

Before this commit, we were resizing the button layout (the whole SmartButtonView) to
align custom icons size to stock buttons icon size, but that was reducing
the touch and animation area too.
Now we just make the icon drawable smaller, and put it in a bigger canvas, so
SmartButtonView and all the related stuff like touch area aren't changed anymore.

Before and after: https://s2.postimg.org/ntjqcu7i1/Screenshot_20170716-185532.png
(see layout margins for the adaway button)

Change-Id: Ifdf61fda021b485d66eafce8b00d3d7486feb59a
2 files changed
tree: bc29d5812da92f9d89c54d98f672bf9d45a6fd49
  1. res/
  2. src/
  3. Android.mk
  4. LICENSE