当前位置: 代码迷 >> 综合 >> Missing styles. Is the correct theme chosen for this layout?
  详细解决方案

Missing styles. Is the correct theme chosen for this layout?

热度:46   发布时间:2023-12-17 22:22:42.0

最近重新安装了下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。

  相关解决方案