首页 > 移动平台 > 详细

android xml 布局错误(黑掉了)Missing styles. Is the correct theme chosen for this layout?

时间:2014-12-25 16:13:23      阅读:1218      评论:0      收藏:0      [点我收藏+]

发现在调整页面的时候 ,老是报以下错误,导致无法静态显示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.

或可选:Theme.Light.NotitleBar

技术分享

android xml 布局错误(黑掉了)Missing styles. Is the correct theme chosen for this layout?

原文:http://www.cnblogs.com/jenson138/p/4184654.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!