Show / Hide Table of Contents

Class AN_Resources

Class for accessing an application's resources.

The Android SDK tools compile your application's resources into the application binary at build time. To use a resource, you must install it correctly in the source tree (inside your project's res/ directory) and build your application. As part of the build process, the SDK tools generate symbols for each resource, which you can use in your application code to access the resources.

Using application resources makes it easy to update various characteristics of your application without modifying code, and—by providing sets of alternative resources—enables you to optimize your application for a variety of device configurations (such as for different languages and screen sizes). This is an important aspect of developing Android applications that are compatible on different types of devices.

Inheritance
System.Object
AN_Resources
Namespace: SA.Android.Content.Res
Assembly: cs.temp.dll.dll
Syntax
public class AN_Resources : AN_LinkedObject

Methods

GetConfiguration()

Return the current configuration that is in effect for this resource object. The returned object should be treated as read-only.

Declaration
public AN_Configuration GetConfiguration()
Returns
Type Description
AN_Configuration

The AN_Configuration instance.

In This Article
Back to top Generated by DocFX