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

android基础知识---Providing Resources

阅读更多

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

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

res资源说明如下表:



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

 

 

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

相关推荐

    android-serialport-api

    The supported features are: * listing the available serial ports on the device, including USB to serial adapters * configuring a serial ports (baudrate, stop bits, permission, ...) * providing ...

    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 ...

    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 ...

    unity-android-notifications

    unity3D中Android的本地推送。Android将通过一个第三方库来完成本地通知。整理是完成的代码

    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

    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 ...

    50-Android-Hacks.pdf

    Effective-Java-2nd-Joshua-Bloch/dp/0321356683), providing tips and patterns I had learned over all my years of developing for the Android platform. Essentially, I wanted to gather together in one book...

    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代码-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 ...

    Android代码-WoocommerceAndroidOAuth1

    WoocommerceAndroidOAuth1 -Android This is a sample application which show how to use whocommerce using OAuth 1.0a “one-legged” authentication(HTTP). This library is based on woocommerce api v1...

Global site tag (gtag.js) - Google Analytics