Android layout 了解constraintBottom和constraintBaseline
在Android Studio 2.2中提供的所有ConstraintLayout属性中,有以下两个底部约束和一个基线约束:Android layout 了解constraintBottom和constraintBaseline,android-layout,android-studio,android-constraintlayout,Android Layout,Android Studio,Android Constraintlayout,在Android Studio 2.2中提供的所有ConstraintLayout属性中,有以下两个底部约束和一个基线约束: layout\u constraintBottom\u toTopOf layout\u constraintBottom\u toBottomOf layout\u constraintBaseline\u tobalineof 而且似乎不是每个视图都有基线 底部约束和基线约束的区别和相似之处是什么?为什么只有某些视图有基线 政府缺乏这种信息 编辑 此图有助于了解基线与
layout\u constraintBottom\u toTopOf
layout\u constraintBottom\u toBottomOf
layout\u constraintBaseline\u tobalineof
而且似乎不是每个视图都有基线
底部约束和基线约束的区别和相似之处是什么?为什么只有某些视图有基线
政府缺乏这种信息
编辑此图有助于了解基线与基础:
基线用于从下到下查看文本 例如,在EditText中,文本不是底部,因此 如果您使用基线,它将位于 EditText的文本不是EditText的视图 更多信息来自