错误:“布局编辑器中的图形预览可能不正确:不支持Paint.setShadowLayer" [英] Error: "The graphics preview in the layout editor may not be accurate: Paint.setShadowLayer is not supported"

查看:83
本文介绍了错误:“布局编辑器中的图形预览可能不正确:不支持Paint.setShadowLayer"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse,我刚刚创建了一个带有2个图像按钮的主页(菜单),但出现此错误:

I'm using Eclipse and I just created a home page (menu) with 2 image buttons, but I am getting this error:

布局编辑器中的图形预览可能不正确:

The graphics preview in the layout editor may not be accurate:

不支持Paint.setShadowLayer.

Paint.setShadowLayer is not supported.

是什么意思?而我该如何解决呢?

What does it mean? And how can I solve it?

我正在使用API​​ 21.

I am using API 21.

推荐答案

这意味着预览不知道如何实现setShadowLayer.这意味着预览看起来与设备上呈现的结果完全不一样.这是为什么您不应该信任预览应用程序的众多原因之一-始终在假定物理布局完成之前先在物理设备上对其进行测试.

It means the preview doesn't know how to implement setShadowLayer. This means the preview won't look exactly like the result rendered on the device. Which is one of many reasons why you shouldn't trust the preview app- always test your layouts on a physical device before assuming they're done.

这篇关于错误:“布局编辑器中的图形预览可能不正确:不支持Paint.setShadowLayer"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆