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"/>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s