Android Table Layout Alignment

前端 未结 3 906
南方客
南方客 2021-02-08 05:14

I am using Table Layout to display data as shown below. \"enter

What i want to do

3条回答
  •  青春惊慌失措
    2021-02-08 05:59

    Since a TableRow is pretty much a horizontally oriented LinearLayout, simply use the principles of weights to make the TextView fill up all the space after the ImageView. It means you'd have to change the rows to somewhat like this:

        
        
    
            
    
            
            
    
        
    

    I've also removed/changed some superfluous attributes. Do mind that I just typed this directly in the browser - there may be the odd typo or tweak required.

提交回复
热议问题