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

前端 未结 14 2018
星月不相逢
星月不相逢 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:06

    I will suggest you to play with layout_weight property of your widget

    Example:

    
    
        
    
        
    
          
    
          
    
        
        
      
    
    
    

    finally your layout will look like as follow:

    +----------------------------------------+
    | short text [view1]             [view2] |
    +----------------------------------------+
    | long text with ell ... [view1] [view2] |
    +----------------------------------------+
    

提交回复
热议问题