`
007007jing
  • 浏览: 42751 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

android基础知识---Providing Resources

阅读更多

android的可使用的资源文件,google建议我们在开发应用程序的时候将资源文件从代码中单独分离出来,便于后期的维护。由于现有设备的屏幕尺寸和语言设定存在变化导致我们需要根据实际情况使用layout,这就要求我们提供合适的可使用资源。

一旦我们定义了可使用的资源文件,我们就可以在代码中使用资源id调用(资源id编译后放置在R class).

res资源说明如下表:



关于每个资源的详细说明请参考sdk

 

 

  • 大小: 43.5 KB
  • 大小: 19.4 KB
分享到:
评论

相关推荐

    Android代码-android-beacon-library

    An Android library providing APIs to interact with beacons. Please visit the project website for how to use this library. IMPORTANT: By default, this library will only detect beacons meeting the ...

    Android代码-android-resource-navigator

    A Google Chrome Extension providing enhanced resource navigation for GitHub hosted Android projects. Features Linkified XML resources Android XML resources viewed on GitHub are processed so that any ...

    unity-android-notifications

    "unity-android-notifications"项目正是为了实现这一功能而设计的,它利用了Unity与Android原生系统的交互,通过第三方库实现了在Android设备上的本地通知。 首先,我们需要理解什么是Android本地通知。本地通知是...

    Android代码-e-contact-android

    e-contact-android E-contact app helps citizens of Dnipro and neighboring regions to solve problems citizens have in their everyday lives by providing a reliable channel of communication with local ...

    Android代码-glide-transformations

    An Android transformation library providing a variety of image transformations for Glide. Please feel free to use this. Are you using Picasso or Fresco? Picasso Transformations Fresco Processors Demo ...

    Android代码-Wolox Mobile SDK网络模块

    WOLMO NETWORKING (ANDROID) The NETWORKING module provides a separation from the network tier... compile 'com.github.Wolox:wolmo-networking-android:master-SNAPSHOT' } Note: The above line will download th

    Android代码-sonar-android

    This plugin enhances the Java Plugin by providing the ability to import the Android Lint reports. The idea is to visualize Android Lint errors directly in Sonar. Usage Most Android projects are ...

    android-serialport-api:自动从http导出

    android-serialport-api 从 code.google.com/p/android-serialport-api 自动导出 目前的Android SDK 没有提供任何对Linux TTY 串口进行读写的API。...providing standard InputStream and OutputStream Java i

    Android代码-RecyclerView-FlexibleDivider

    Android library providing simple way to control divider items of RecyclerView Release Note [Release Note] (https://github.com/yqritc/RecyclerView-FlexibleDivider/releases) Gradle repositories { ...

    Android代码-AndroidYouTubePlayer

    android-youtube-player android-youtube-player is a stable and customizable open source YouTube ... Instead, a native UI built on top of Android is used to interact with the player, providing a

    Unity3D Android 状态栏

    在Android平台上,Unity3D允许开发者实现丰富的用户界面,包括控制状态栏和虚拟按键的功能。本文将深入探讨如何在Unity3D 5.3.4版本中实现在Android 2.0系统上显示状态栏和虚拟按键,并支持沉浸式透明效果。 首先,...

    Android代码-voice-overlay-android

    Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permission. Demo You can clone this repo, then run the Demo ...

    Android代码-fresco-processors

    An Android image processor library providing a variety of transformations for Fresco. Are you using Picasso or Glide? Picasso Transformations Glide Transformations Demo Original Image Processors ...

    Android代码-picasso-transformations

    An Android transformation library providing a variety of image transformations for Picasso. Please feel free to use this. Are you using Glide or Fresco? Glide Transformations Fresco Processors Demo ...

    Android代码-artist

    As Android apps grow, providing common features and consistent functionality across Views becomes challenging. Typically, this results in copy-pasting features across views, monolithic classes, or ...

    Android代码-OkGraphQl

    A GraphQL service is created by defining types and fields on those types, then providing functions for each field on each type. Learn more at : http://graphql.org/learn/ OkGraphQl is an Android client...

    Android代码-AndroidVideoCache

    Providing names for cached files Adding custom http headers Using exoPlayer Sample Known problems Whats new Code contributions Where published? Questions? License Why AndroidVideoCache? Because ...

    Android代码-DNSQuery

    We have the hope that by providing this application to the Open Source community that it will be extended and used by the community. If your just wanting the APK it can be found in /bin/DNSQuery.apk ...

    Android代码-OpenRTS

    OpenRTS intends to support any kind of common real-time strategy gameplay, design and control, providing its own editor and a versatile data structure. The project also wants to be a pool of RTS ...

Global site tag (gtag.js) - Google Analytics