Danh Trịnh
New member
How is weight used in linear layout?
Answer
Weight can only be used in LinearLayout . If the orientation of linearlayout is Vertical, then use android_layout_height=”0dp” and if the orientation is horizontal, then use android:layout_width = “0dp” . It’ll work perfectly.
Answer
Weight can only be used in LinearLayout . If the orientation of linearlayout is Vertical, then use android_layout_height=”0dp” and if the orientation is horizontal, then use android:layout_width = “0dp” . It’ll work perfectly.