((在Android Studio版本3.5.3上)该屏障在运行时可以正常运行,但是AS预览无法找到/渲染它。
<androidx.constraintlayout.widget.Barrier android:id="@+id/barrier" android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="end" app:constraint_referenced_ids="view1, view2" />
结果:
屏障显示为灰色框,好像预览无法识别
((在Android Studio版本3.5.3上)该屏障在运行时可以正常运行,但AS预览无法找到它/将其呈现
如果您使用的是较早的dependency
,请使用其中之一: