android studio preview 出现 Rendering Problems的解决方法
2016-01-07 15:23
561 查看
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>
相关文章推荐
- Android app native代码性能分析
- Android 实例:在Activity 之间传递数据的intent
- Android开源类库和工具集合
- Android Espresso单元测试
- Android Studio 代码混淆
- Android中保存和恢复Fragment状态的最好方法
- Android隐藏虚拟按键,关闭开机动画、开机声音
- Android 5.0系统以上获取所有运行进程
- Android——谷歌官方下拉刷新控件SwipeRefreshLayout
- 谷歌J2ObjC:打破Android应用与iOS应用之间的语言障碍
- Android Studio 下获取应用的数字签名MD5、SHA1方法
- 教你搞定Android自定义View
- Android 解决APN无权限问题
- Android 动画之RotateAnimation应用详解
- Android PullToRefresh (ListView GridView 下拉刷新) 使用详解
- Android--添加子视图(addView和setView)
- android.util.Base64编码有时会默认换行
- Android 批量打包利器
- Android 利用addView 动态给Activity添加View组件
- Android 项目中常用到的第三方组件