我正在使用 Eclipse,我刚刚创建了一个带有 2 个图像按钮的主页(菜单),但是我收到了这个错误:
The graphics preview in the layout editor may not be accurate:
Paint.setShadowLayer is not supported.
这是什么意思?我该如何解决?
我正在使用 API 21。
最佳答案
表示预览不知道如何实现setShadowLayer。这意味着预览看起来与设备上呈现的结果不完全相同。这是您不应该信任预览应用程序的众多原因之一 - 始终在假设它们已完成之前在物理设备上测试您的布局。
关于android - 错误 : "The graphics preview in the layout editor may not be accurate: Paint.setShadowLayer is not supported",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27849762/