I usually give fixed height in order to avoid views getting overlapped on orientation change, But is giving weight is better than this..?, share it if there are better ways to give LayoutParameter.
Thank you.
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.
It completely depends on situations, like when my view should cover a part of width and height available on screen, then I would opt for weight and when it should be fixed in dimensions irrespective of width, height then use fixed layout co-ordinates.