2-column TableLayout with 50% exactly for each column

前端 未结 4 1446
醉梦人生
醉梦人生 2020-12-13 07:00

This one puzzles me since my first steps with Android. I can\'t make both columns in a 2-column TableLayout exact 50% each.

Here\'s an example:



        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 07:35

    This is how I format my tables evenly. Not part of your question but to span all columns android:layout_span="2" on other TableRow children that do not contain the android:layout_column attribute. Hope this helps.

    
    
        
    
            
            
    
            
            
    
        
    
     
    

提交回复
热议问题