android xml 布局错误
16lz
2021-01-23
最近重新安装了下android开发环境,发现在调整页面的时候 ,老是报以下错误,导致无法静态显示ui效果。
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.Failed to find style 'textViewStyle' in current theme
解决方法如下:
layout预览界面(Graphic Layout),右上角有个Theme的选择项,默认为notitle,根据喜好随意设定值,我们这里设定为android以前默认的Theme.black.
更多相关文章
- Android连接WiFi设置IP为静态IP
- Android 工具类的两种写法---单例模式与静态方法
- Android静态注册内部类广播BroadcastReceiver
- Android静态安全检测 -> 敏感函数调用风险
- Android静态安全检测 -> HTTPS敏感数据劫持漏洞
- android p make 编译lib静态库报错
- Android实现静态广播监听器的方法