Relative Layout is a view group that displays child views in relative positions.

RelativeLayout is a view group that displays child views in relative positions

It is used in android for custom layout designing. Relativeview gives us the ease to place our component/view based on the relative / sibling
component’s position.
We can use Above, Below, Left and Right in relative Layout to arrange the component’s position in with respect to other compnent.

There are different attributes of Relative layout.


  1. alignBottom
  2. alignLeft
  3. alignRight
  4. alignTop
  5. alignParentEnd
  6. alignParentLeft
  7. alignParentRight


In a linear layout, all the elements are displayed in a linear style either vertically or horizontally.
Either Horizontally or Vertically this behavior is set in android:orientation which is an property of the node Linear Layout.

  1. Learn Android Development
  2. Android Studio
  3. Android UI
  4. Java or Kotlin for Android
  5. Android Activity Life Cycle
  6. Relative Layout
  7. Android Development Elements
  8. XML and Android
  9. JSON and Android
  10. Google Play Store