Adding blank spaces to layout

前端 未结 14 1272
深忆病人
深忆病人 2021-01-30 04:53

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         


        
14条回答
  •  甜味超标
    2021-01-30 05:34

    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]

提交回复
热议问题