版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ws1836300/article/details/54343038
今天做一个关于设置 TextView 阴影 的 小程序时发现 提示:
The graphics preview in the layout editor may not be accurate:
Paint.setShadowLayer is not supported. (Ignore for this session)
大意就是:你的预览图和 实际显示的界面可能不一样。Paint.setShadowLayer这个属性不支持你实时预览查看。
解决:
其实你运行一下程序就会有真实的界面了,预览图有时候显示的不是真实的界面,一般情况下可以忽略这条信息。
不过为什么会不支持呢?
这个可能跟运行的硬件加速 支持属性有关,可参考以下帖子。。。
参考链接:http://blog.csdn.net/u013598111/article/details/49975843
参考链接:http://stackoverflow.com/questions/27849762/what-does-this-error-means-the-graphics-preview-in-the-layout-editor-may-not-be