Textview with long text pushes out other views in GridLayout despite ellipsize=end

前端 未结 14 1864
星月不相逢
星月不相逢 2020-12-24 01:19

My problem is very similar to How to get a layout where one text can grow and ellipsize, but not gobble up the other elements on the layout, but read on below why I can\'t u

14条回答
  •  礼貌的吻别
    2020-12-24 02:14

    Try this

    
    
    
        
           
        
    
        
            
        
    
        
            
        
    
    
    

    Currently, all views are centered. You can change android:gravity property to meet your needs. For example, you may want to align view1 right and view2 left in which case last two LinearLayouts would look something like (with 5dp margin on the right and left respectively):

    
        
    
    
    
        
    
    

提交回复
热议问题