keep the margin when the referenced view is gone in ConstraintLayout

后端 未结 1 668
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 00:46

I have 2 TextViews as in the xml below. If I hide the textView2 at runtime, I lose the bottom margin. How can I keep the bottom margin between textView

1条回答
  •  孤独总比滥情好
    2021-02-01 01:46

    Use layout_goneMarginBottom:

    
    
    
      
    
      
    
    

    0 讨论(0)
提交回复
热议问题