RelativeLayout

Android Layout Padding

In android, we can set Padding to layout. So that for each view we can give some space to display.

Android RelativeLayout

RelativeLayout:

What are the uses of Relative layout?

  • By adding views to relative layout, we can set the relative positions of views with respect to each other.
  • For example if we add three views like imageview, textview and edittext we can specify the position of textview, that is whether it should be below (or any other direction) to edittext or imageview.
  • android:layout_above=”@+id/idname” (Here ”@+id/idname” is the id name of th
Syndicate content