Android的L - android.graphics.outline [英] Android L - android.graphics.outline

查看:1108
本文介绍了Android的L - android.graphics.outline的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据为L的开发商preVIEW Android开发者页面,有可能使用大纲类功放&;定义视图的轮廓以正确的方式来显示阴影。
http://developer.android.com/$p$ PVIEW /材料/视图 - shadows.html#阴影的)

According to the android developer page for the developer preview of L, it's possible to use the Outline class & define outlines for view's to display the shadows in the correct way. (http://developer.android.com/preview/material/views-shadows.html#shadows)

在我的情况下,L-sdk我用,没有发现它。因此,我不能导入和使用的类。

In my case, the "L"-sdk I use, didn't found it. Therefore I couldn't import and use the class.

根据测试项目中,存储的 SDK /样本/ Android的-L / UI /视图/高程/ ElevationDrag 这个类应存放在android.graphics.outline,但即使在这个项目不能正确定位。

According to the test project, stored in sdk/samples/android-L/ui/views/Elevation/ElevationDrag this class should be stored in "android.graphics.outline", but even in this project it can't be located correctly.

是开发商preVIEW没有实现此功能尚未还是我错过了什么?

Is this feature not implemented in the developer preview yet or did I missed something?

推荐答案

终于明白了。

这是在Android Studio中的错误。我只是手动添加导入到我的活动:

It's a bug in android studio. I just added manually the import to my activity:

import android.graphics.Outline

这将显示为错误,但它可以编译和放大器;跑。
我希望他们会很快解决这个问题。

It will be shown as error, but it can compile & run. I hope they will fix this soon.

编辑:我在这里创建了一个问题:<一href=\"https://$c$c.google.com/p/android/issues/detail?id=72788&q=android%20studio%20android%20l&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars\" rel=\"nofollow\">https://$c$c.google.com/p/android/issues/detail?id=72788&q=android%20studio%20android%20l&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

I created an issue here: https://code.google.com/p/android/issues/detail?id=72788&q=android%20studio%20android%20l&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

看起来,他们正在努力。

It looks like, they're working on it.

这篇关于Android的L - android.graphics.outline的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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