Api 25 Reference-->andriod

android

Contains resource classes used by applications included in the platform and defines application permissions for system features.

You can use some resources directly from these R classes in your own applications, but you should generally use only resources that you've provided directly in your application, in order to provide a cohesive application package that has no external dependencies. In particular, you should not use drawable resources from the android package, because they may change between platform versions, causing unforeseen conflicts with your design. Typically, styles are the only resources you should use directly from these resources.

For information about using resources, see the Application Resources developer guide.

安卓

包含被使用在安卓平台上的资源类,和为系统特性定义的应用权限。

你可以在你自己的应用程序上的这些R.class上直接使用一些资源,但是通常你只需要使用你已经在你的application中直接提供的资源,目的是为了提供一个没有外部依赖关系的紧密结合的应用程序包。特别地,你应该从安卓包中使用drawable资源,因为他们可能在不同平台版本之间改变,导致不可预见的冲突在你的设计中。典型的来说,styles是你应该从这些资源中唯一直接使用的资源。

关于使用资源的信息,查看应用程序开发者指导。


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值