如何使用默认的Andr​​oid可绘 [英] How to use default Android drawables

查看:106
本文介绍了如何使用默认的Andr​​oid可绘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用默认的Andr​​oid可绘制时,什么是最好的方法呢?我应该使用 android.R.drawable 或者我应该复制可绘制在我的项目并使用 R.drawable

What is the best approach when using default Android drawables? Should I use android.R.drawable or should I copy the drawables in my project and use R.drawable?

有没有什么风险,这在Android中的较新版本,一些默认可绘制被删除或调整?或者,在一些消极的方式影响,我的应用程序的外观?此外,它在Android源$ C ​​$ c中的可绘制的被认为是稳定的,应该依靠?

Is there any risk, that in a newer version of Android, some of the default drawables are removed or resized? Or, affect in some negative way, the look of my app? Also, which of the drawables in the Android source code are considered "stable" and should be relied on?

因为我认为,应用程序的外观应该与所使用的Andr​​oid版本一致的,我宁愿不要复制可绘制。因此,例如,为1.6版本,它应该使用默认的Andr​​oid位图1.6版本

I'd rather not copy the drawables because I think that the look of the app should be consistent with the Android version used. So, for example, for version 1.6 it should use the default Android bitmaps for version 1.6.

推荐答案

如果您通过任何对Android开发团队的讨论阅读,你会看到,他们鼓励使用的东西,是不是在公共SDK,因为剩下的就是受到广泛的变化。

If you read through any of the discussions on the android development group you will see that they discourage the use of anything that isn't in the public SDK because the rest is subject to extensive change.

这篇关于如何使用默认的Andr​​oid可绘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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