Android RelativeLayout Tutorial Programmatically

 

In this Tutorial, we see What is layout_weight in android? The Weight can only use in LinearLayout. Its denoted as ‘android:layout:weight’. Suppose, When the orientation of linearlayout is Vertical, then use android:layout_height=”0dp” and When the orientation is horizontal, then use android:layout_width = “0dp” .
There are two attributes of view’s size like layout_width and layout_height. The dimension of this attributes are match_parent, wrap_parent and specific dimension like 100dp.


Leave a Reply

Your email address will not be published. Required fields are marked *