<ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="220dp" android:background="@color/white" xmlns:app="http://schemas.android.com/apk/res-auto"></ConstraintLayout>
改为:
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="220dp" android:background="@color/white" xmlns:app="http://schemas.android.com/apk/res-auto"> </android.support.constraint.ConstraintLayout>也就是ConstraintLayout需要加包名。
ConstraintLayout无法预览
最新推荐文章于 2022-04-15 12:53:26 发布
本文介绍如何为ConstraintLayout添加正确的包名前缀以确保在Android项目中正常运行。具体操作是将原有的ConstraintLayout标签修改为带有支持库包名的版本。

4418

被折叠的 条评论
为什么被折叠?



