我有一个minSdk = 15的应用程序。
我正在尝试迁移到ConstraintLayout。
差不多好但是当我从布局编辑器更改margin_left的值时,将删除layout_marginLeft / Right attrubute。
之前
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginStart="24dp" // <- I will set to 16dp from layout editor
/>
后
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
// <- layout_marginLeft is removed...
android:layout_marginStart="16dp" // <- it is ok
/>
如果我从布局编辑器更改marginLeft,
layout_marginLeft / Right和layout_marginStart / End已更改。
成功更改layout_marginStart / End,但删除了layout_marginLeft / Right。
要么
值被拒绝,layout_marginLeft / Right被删除。