所以我一直在使用ScrollView中的ConstraintLayout来开发这个布局。它工作正常,但现在我遇到了问题。我必须扩大屏幕外的布局。我可以在设计模式中滚动,但是如果没有卡住到顶部,我不能添加任何内容。这些约束是针对较早的对象,而不是我添加的当前对象。是否可以在Blueprint模式下使用ConstraintLayout滚动ScrollView?
我可以在蓝图模式中添加约束,但它看起来像我不能在蓝图模式中滚动ScrollView。这甚至有可能吗?使用Android Studio 2.2(版本)和constraint-layout:1.0.0-alpha8
我试着像在设计模式中那样做,但它不滚动。有任何想法吗?
使用ConstraintLayout正常滚动会导致约束停留在同一位置。
编辑:
更新至alpha9
但仍然没有解决它
编辑2:
β1的也不行。 AS 2.2.2。
编辑3:
样品布局:
<Button
android:text="Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/sampleButton"
/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="HardcodedText">
<android.support.constraint.ConstraintLayout
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- ETC constraints -->
</android.support.constraint.ConstraintLayout>
</ScrollView>
试图在蓝图模式下滚动 - 不会发生滚动。试图在设计模式下执行此操作会导致约束不动(表示编辑约束仅适用于第一个元素,而不是滚动可见区域中的元素)。 – Zoe
含义即使应该,蓝图模式中也不会有对象移动。 – Zoe
长话短说:它不起作用,我已经试过了 – Zoe