• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Android:系统资源和应用程序资源:间的区别?

用户头像
it1352
帮助1

问题说明

来自Resources类的Android文档:

From Android documentation for the Resources class:

public static Resources getSystem ()

已在API级别1中添加返回一个全局共享资源对象,该对象 仅提供对系统资源的访问(不提供应用程序资源), 并且未针对当前屏幕进行配置(无法使用尺寸 单位,不会根据方向等发生变化.

Added in API level 1 Return a global shared Resources object that provides access to only system resources (no application resources), and is not configured for the current screen (can not use dimension units, does not change based on orientation, etc).

什么是系统资源应用程序资源,它们之间有什么区别?

What are system resources and application resources and what is the difference between them?

正确答案

#1

应用程序资源为

  1. 动画资源( R.anim )-> res/anim
  2. 颜色状态列表资源( R.color )->分辨率/颜色
  3. 可绘制资源( R.drawable )-> res/drawable
  4. 布局资源( R.layout )-> res/layout
  1. Animation Resources (R.anim) --> res/anim
  2. Color State List Resource(R.color) --> res/color
  3. Drawable Resources (R.drawable) --> res/drawable
  4. Layout Resource (R.layout) -- >res/layout

请参见此链接以获取更多详细信息

系统资源是

  1. Android ID( android.R.id )
  2. Android的小部件( android:id/tabs )
  3. 颜色( android.R.color.transparent )
  1. Android ids (android.R.id)
  2. Android's widgets (android:id/tabs)
  3. Color (android.R.color.transparent)

有关此信息,请参见更多详细信息

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhbeikab
系列文章
更多 icon
同类精品
更多 icon
继续加载