Android: how to set the height/width of the image(src image intead of the background) of a ImageButton?
I want to set the height/width of the top level image(not the bac
You can just Use the scaleType attribute of ImageButton. Set it to fitXY or fitCenter or anything else according to your need.
scaleType
ImageButton
fitXY
fitCenter
like this