Fit Image in ImageButton in Android
I want them to cover 75% of the button area. Use android:padding=”20dp” (adjust the padding as needed) to control how much the image takes up on the button. but where as some images cover less area, some are too big to fit into the imageButton. How to programatically resize and show them? Use a android:scaleType=”fitCenter” … Read more