Android Relative Layout tutorial with Example

 

Android Relative Layout tutorial with Example

Android RelativeLayout is a view group that displays child views in relative to each other positions. The position of each view can be specified as relative to sibling elements (such as to the left of or below another view) or in positions relative to the parent Relative layout area (such as aligned to the bottom, left or center). Linear layout

 

Relativelayout

  • RelativeLayout is a very powerful utility for designing a user interface because it can eliminate nested view groups and keep your layout hierarchy flat, which improves performance.

RelativeLayout Attributes

NumberAttribute
1android:gravity

Specifies how an object should position its content, on both the X and Y axes, within its own bounds.

2android:ignoreGravity

Indicates what view should not be affected by gravity.

 

Inherited XML attributes

Post a Comment

0 Comments