Question says it all. Is this possible?
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.
The weight attribute only has meaning for the orientation of the parent layout.
If you define the parent layout to be horizontal, the weight has meaning for the width of the layout.
If you put a vertical layout within a horizontal layout, you can assign a weight to te vertical layout element, which is for the width, and within the vertical layout you can define weights for child elements that are for the height.
Please read this carefully:
http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:orientation