Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在ConstraintLayout我们有新类型的参数creator:layout_constraintTop_creator或者layout_constraintRight_creator 它应该如何使用?
ConstraintLayout
creator
layout_constraintTop_creator
layout_constraintRight_creator
正如命名空间所暗示tools:layout_constraintTop_creator的 (),它纯粹由 Android Studio 使用——tool当 xml 文件被推送到设备上时,这些属性(使用命名空间)实际上被剥离了。
tools:layout_constraintTop_creator
tool
所以不应该使用它:)
现在,如果您想知道 Studio 如何使用它们,实际上很简单:我们使用创建者属性来跟踪谁创建了约束,特别是如果它们是由推理引擎创建的,因为我们想废弃它们/替换它们案例。