Is it possible to do a 1:3:6 weight adjustment using relative layout?
I have a relative layout and I need to place 3 UI components inside it using the ratio 1:3:6. Is it possible to do so?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Insert a linear layout (vertical or horizontal depending on your needs) inside this
RelativeLayout, deciding its position as usual. And the inside theLinearLayoutassign weights to the three elements to the ratio you want.They will fill the
LinearLayoutwhile giving you the ability of placing it relatively in your layout.