android textview 添加阴影效果:Paint.setShadowLayer is not supported

来源:互联网 发布:淘宝戎美怎么样啊 编辑:程序博客网 时间:2024/05/07 05:01

今天做一个关于设置 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


0 0
原创粉丝点击