I am trying to make empty lines within android. This is what I have been doing:
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
an
Use Space
or View
to add a specific amount of space. For 30 vertical density pixels:
If you need a flexible space-filler, use View
between items in a LinearLayout
:
or
This works for most layouts for API 14 & later, except widgets (use FrameLayout
instead).
[Updated 9/2014 to use Space. Hat tip to @Sean]