【发布时间】:2017-12-26 05:23:05
【问题描述】:
我有一个 minSdk=15 的应用。
我正在尝试迁移到 ConstraintLayout。
几乎没问题。但是当我从 layout editor 更改 margin_left 的值时,layout_marginLeft/Right 属性被删除。
之前
<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_margineStart/End,但是layout_marginLeft/Right被移除了。
或
值被拒绝,layout_marginLeft/Right 被移除。
【问题讨论】:
标签: android android-layout android-studio android-layout-editor