Align image on image android button

I am trying to implement the ContentVertical Alignment alignment function found in ios for an Android image button. It would be easier to use setGravity (), however the image button does not support this method. Is there any way around this somehow?

+4
source share
1 answer

Try scaleType .

+5
source

All Articles