How can I make the width of a button so that it is, for example, a quater of the screen, or a fifth?
please your question
Take the width of the screen and divide it by 2 (so you have the half of the screen width) and then again by 2 to get the quarter of the screen width:
button_width = (screen_width/4)
Please login first before posting an answer.