Class of android.content.res · Resources.java · Android's reference
public class Resources
The app's resources for the device's configuration, over its AssetManager.
Page 1 2
public static final int ID_NULL = 0 sourcepublic Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) sourcepublic Resources(ClassLoader classLoader) sourcepublic static Resources getSystem() sourceThe framework's own resources: ScarletNX has none of its own, so the app's tables serve.
public static void deviceChanged(Configuration device, DisplayMetrics m) sourceThe display changed (snx.android.Device): each Resources takes its metrics, and the fields of the device's configuration that follow the display's size. A configuration context keeps what it overrides otherwise.
public final AssetManager getAssets() sourcepublic ClassLoader getClassLoader() sourcepublic Configuration getConfiguration() sourcepublic DisplayMetrics getDisplayMetrics() sourcepublic void updateConfiguration(Configuration config, DisplayMetrics m) deprecated sourcepublic void getValue(int id, TypedValue outValue, boolean resolveRefs) throws NotFoundException sourcepublic void getValue(String name, TypedValue outValue, boolean resolveRefs) throws NotFoundException sourcepublic void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) sourcepublic CharSequence getText(int id) throws NotFoundException sourcepublic CharSequence getText(int id, CharSequence def) sourcepublic String getString(int id) throws NotFoundException sourcepublic String getString(int id, Object... formatArgs) throws NotFoundException sourcepublic CharSequence getQuantityText(int id, int quantity) throws NotFoundException sourceA plural's text for quantity: the bag's entry for its category in the configuration's first locale, as ICU selects it (other when the bag has none for it)
public String getQuantityString(int id, int quantity) sourcepublic String getQuantityString(int id, int quantity, Object... formatArgs) sourcepublic CharSequence[] getTextArray(int id) throws NotFoundException sourcepublic String[] getStringArray(int id) throws NotFoundException sourcepublic int[] getIntArray(int id) throws NotFoundException sourcepublic TypedArray obtainTypedArray(int id) throws NotFoundException sourcepublic int getInteger(int id) throws NotFoundException sourcepublic boolean getBoolean(int id) throws NotFoundException sourcepublic float getFloat(int id) sourcepublic float getFraction(int id, int base, int pbase) sourcepublic float getDimension(int id) throws NotFoundException sourcepublic int getDimensionPixelOffset(int id) throws NotFoundException sourcepublic int getDimensionPixelSize(int id) throws NotFoundException sourcePage 1 2
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.