android studio preview 出现 Rendering Problems的解决方法
来源:互联网 发布:js clear 编辑:程序博客网 时间:2024/06/08 08:18
最近使用android studio打开xml文件,总是不能正常显示preview界面,就找到了以下解决方案。
本文转自http://blog.csdn.net/luckymxq/article/details/50476595,在这里感谢原博主的分享。
1. 打开 res/values/styles.xml 内容如下
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style></resources>
2. 在 parent="Theme.AppCompat.Light.DarkActionBar" 之句话中的 Theme 前面 添加 Base
修改后的代码为:
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style></resources>
0 0
- android studio preview 出现 Rendering Problems的解决方法
- android studio preview 出现 Rendering Problems的解决方法
- android studio preview 出现 Rendering Problems的解决方法
- android studio preview 出现 Rendering Problems的解决方法
- Android Studio Preview ”Rendering Problems“问题解决初探。
- android studio中rendering problems解决方法
- Android Studio: Rendering Problems
- Android Studio Rendering Problems
- Android Studio Rendering Problems
- Android studio Rendering Problems
- Android Studio : Rendering Problems
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- Android Studio 2.0 layout 布局文件 Rendering Problems 错误解决方法
- android studio新建hello world时出现Rendering Problems
- android studio新建hello world时出现Rendering Problems
- android studio在XML预览中出现Rendering Problems问题
- android studio在XML预览中出现Rendering Problems问题
- Qt中定时器使用的两种方法
- 利用阿里大于实现发送短信(JAVA版)
- JQuery dataTables插件中文无法转换问题
- 网络硬件的一些认识
- 从svn 上导出maven 项目的配置
- android studio preview 出现 Rendering Problems的解决方法
- 测试监控系统框架构想
- 返回对象
- java类执行顺序
- 堆和栈的区别(转过无数次的文章)
- TCP_IP详解学习笔记
- character-RNN模型介绍以及代码解析
- mysql堵塞 sending data和sort状态多,cpu高
- UPS不间断电源工作原理简述