Y
Y
ywitodenasuby2020-06-02 19:33:54
Android
ywitodenasuby, 2020-06-02 19:33:54

What layout_weight to set?

I have a LinearLayout(Horisontal) and it has 3 buttons. I want the first one to take two quarters, and the other two to take one quarter each. That is, the first button is 50%, and the other two are 25% each. How to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2020-06-02
@DragonSpirit

in linear layout android:weightSum="4"
to children android:width="2"and "1"accordingly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question