Gaps between layout components in Android

There is a very simple solution in Android if you want to have space between components. You can always set margins but you can also use the Space class. You can use it like this:

<Space
  android:layout_width="1dp"
  android:layout_height="30dp"/>

You may also like...