目前我正在尝试使用新的 ConstraintLayout
并尝试创建以下布局:
(1) Headline: Type 24sp, Leading 32sp
(2) Subhead 1: Type 15sp, Leading 24sp
(3) 32sp line height
(4) 56dp padding between the top of button and the center of copy
(5) 24dp vertical padding
我现在的问题是我不知道应该如何处理引用第二个 TextView
中心的尺寸。我们对中心(或基线)到底部或类似的东西没有约束。此外,我无法在基线点之间连接的两个 View 之间设置空间。那么我应该如何使用 ConstraintLayout 创建此布局?
谁能给我一个上图中的示例布局?
最佳答案
关于android - ConstraintLayout View 之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39306636/