R
R
retr02017-04-18 16:44:26
Java
retr0, 2017-04-18 16:44:26

How to remove stroke on image button?

After assigning a picture to the image button element (as far as I noticed the format does not matter, but I used png), the part of the button that is not filled with the image is painted over with a white background, which looks extremely unaesthetic. Is there a way to get rid of this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gavrilenko, 2017-04-18
@retr0

android:scaleType="centerCrop"
android:padding="0dp"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question