Android开发-Missing styles 解决方案-AndroidStudio
来源:互联网 发布:linux用kill进程的方法 编辑:程序博客网 时间:2024/05/18 07:07
xml切换主题出现Missing styles,最后没能找到直接的解决方案。
例如,下拉选择“Light.NoTitleBar”,就会出现:
Rendering Problems 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 '?attr/textEditSuggestionItemLayout' in current theme. (33 similar errors not shown) Tip: Try to refresh the layout.
在java里,尝试使用:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); }运行到手机里也没有得到正确的效果。
最后,尝试了一下直接在manifests.xml里进行设置:
<activity android:name=".MainActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar">
效果没有问题。暂时这样解决。
1 2
- Android开发-Missing styles 解决方案-AndroidStudio
- Android Missing styles Error
- androidstudio的Rendering Problems Missing styles错误解决
- androidstudio的Rendering Problems Missing styles错误解决
- androidstudio的Rendering Problems Missing styles错误解决
- androidstudio的Rendering Problems Missing styles错误解决
- android开发styles.xml出错
- 解决Android Studio的Rendering Problems之Missing styles
- android studio Rendering Problems Missing styles错误解决
- Android开发-实现onItemClick失效的解决方案-AndroidStudio
- 【Android开发遇错】AndroidStudio导入项目一直Building解决方案
- 安卓Missing styles解决方法
- Android开发-TextViewDemo-AndroidStudio
- Android开发-EditTextDemo-AndroidStudio
- Android开发-ImageViewDemo-AndroidStudio
- android预览界面出错,Missing styles. Is the correct theme chosen for this layout?
- Android Studio使用之Missing Styles.Is the correct theme chosen for this layout?
- Android Missing Styles. Is the correct theme chosen for this layout?
- Java中使用Jedis操作Redis
- JQuery EasyUi控件值的获取与设置
- JavaScriptCore 的内存管理方面
- 存储过程使用逗号分隔作为IN参数疑难问题解决方法【真正解决】
- Windows7安装RVCT注意事项
- Android开发-Missing styles 解决方案-AndroidStudio
- 念起即断,念起不随,念起即觉,觉之既无,
- Swift3.0已出坑-适配iOS10,项目迁移Swift3.0问题总结。
- implicit隐式转换
- linux下多线程由于SIGPIPE退出进程的分析。
- $.each
- Java操作Redis实现增删改查和基本操作
- FastJson的基本使用
- 【图像识别】【读论文】纸币图像特征提取和识别问题