Problems with ConstraintLayout - vertical margin doesn't work

后端 未结 3 944
轻奢々
轻奢々 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-26 23:49

    On API 23 with ConstraintLayout version 1.0.0-beta5, it looks like the top margin is not respected or the height of the top TextView is not calculated correctly. I do see an overlap on API 23 but not on API 24 with this version of ConstraintLayout.

    However, with ConstraintLayout version 1.1.0-beta2, everything looks OK on API 23 and API 24, so this might have been a problem that was corrected. I suggest that you upgrade to a later release of ConstraintLayout to see if the problem persists.

提交回复
热议问题