- 2018-06-05 Android studio中添加组件提
- 如何在Android Studio添加本地aar包引用
- CMake must be installed to build
- Suggestion: use tools:overrideLi
- Android 浮窗按钮FloatActionButton
- public class ExampleInstrumented
- Android-Cannot merge new index 6
- Android之底部导航栏BottomNavigationBar
- Could not connect to remote proc
- Android 原生项目集成Flutter
使用布局文件中添加控件的时候有时会报异常:“This view is not constrained, it only has designtime positions ... ...”
解决方法:可打开预览界面,在预览界面中右键点击,选择 “Constraint Layout” —> “Infer Constraints” ,即可解决。如下图:
![](https://img.haomeiwen.com/i2592933/1e3a34b74ba23c22.png)
网友评论