Problems with ConstraintLayout - vertical margin doesn't work

后端 未结 3 989
轻奢々
轻奢々 2021-01-26 23:25

I want to build this simple layout using ConstraintLayout:

It works as expected when Title and Subtle are just single line tex

3条回答
  •  渐次进展
    2021-01-27 00:08

    I recommend you using only the ConstraintLayout which gives you chaining option. With it, you can pack two TextViews and center them vertically in ConstraintLayout itself without the FrameLayout and the problem you are facing:

    
    
        
    
        
    
    
    

提交回复
热议问题