Adding blank spaces to layout

前端 未结 14 1132
深忆病人
深忆病人 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:43

    there is a better way to do this just use the code below and change according to what you want the size of the blank area

         <Space
                android:layout_width="wrap_content"
                android:layout_height="32dp"
                android:layout_column="0"
                android:layout_row="10" />
    

    if you are using with the grid layoout then only use

     android:layout_row="10" />
    
    0 讨论(0)
  • 2021-01-30 05:47

    if you want to give the space between layout .this is the way to use space. if you remove margin it will not appear.use of text inside space to appear is not a good approach. hope that helps.

    <Space
            android:layout_width="match_content"
            android:layout_height="wrap_content"
            android:layout_margin="2sp" />
    
    0 讨论(0)
提交回复
热议问题