Android: creating two columns in a linearlayout

后端 未结 7 2299
囚心锁ツ
囚心锁ツ 2020-12-13 02:08


        
7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 02:51

    Yeah, this one is confusing. Even though the width of LinearLayout is set to fill_parent, it still only takes the minimum width necessary. You need to set the 2nd TextView to fill_parent and then its gravity to right:

    
    
        
    
        
    
    
    

提交回复
热议问题