android预览界面出错,Missing styles. Is the correct theme chosen for this layout?

来源:互联网 发布:手机浏览器 域名劫持 编辑:程序博客网 时间:2024/05/16 10:55

在进行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


解决方法如下:

打开xml布局,切换至布局预览界面(Graphic Layout),上面一栏有个五角星图标的下拉箭头选择项,默认为notitle,

问题就是出在这里,根据需要修改这里的设定值,这里我的设定为NoTitleBar。

0 0
原创粉丝点击