N
N
Neonoviiwolf2017-01-03 19:36:23
Java
Neonoviiwolf, 2017-01-03 19:36:23

How to crop a button in android?

Good!
I want to make a button that looks like an icon, but even I can not cope.
1) the background is larger than the picture, although wrap_content is worth the height and width.
2) if I change the color of the backgroud to any other than the default, there is no touch animation (color change)
3a8f90c8cf7240d2af6f66cf0783a1b6.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lopatoid, 2017-01-12
@lopatoid

The touch animation has already been answered, but in order to have the correct dimensions, you need to look towards the 9-patch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question