Answer the question
In order to leave comments, you need to log in
Button with custom background. How to prepare for all screen sizes?
I got confused in the process of studying the issue of creating a button with a picture as background. Did I understand correctly that for each drawable-xxxxxx folder you need to create your own version of the image size? Or/and is it possible to use some magical attributes in the Button tag? Or just write layout_width, height in dp? And where does the 9-patch? I would be grateful for a link to a quality tutorial.
Answer the question
In order to leave comments, you need to log in
For you: Create a custom button using 9-patch and state list
and Android nine-patch - stretch android
And look here for answers: using nine-patch image as Background of Button android
Did I understand correctly that for each drawable-xxxxxx folder you need to create your own version of the image size?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question