I don’t understand how to use this attribute. Can anyone tell me more about it?
Share
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.
With
layout_weightyou can specify a size ratio between multiple views. E.g. you have aMapViewand atablewhich should show some additional information to the map. The map should use 3/4 of the screen and table should use 1/4 of the screen. Then you will set thelayout_weightof themapto 3 and thelayout_weightof thetableto 1.To get it work you also have to set the height or width (depending on your orientation) to 0px.