• Welcome Guest to the new PlayerSquared! Please be aware the site is a work in progress & we'd appreciate your help in letting us know which features from the old site we're currently missing as well as report any bugs you find via this thread here: Bugs/Missing Features
  • If this is your first visit You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Sign up today to get the latest PS4 GameSaves, Game Mods and much more!

Resources Tab on Android

SyrenRemix

Reverse Engineer
Staff
JIMZO-F
October 25, 2020
400
2,876
93
3,013
The "res/" folder in Android development contains a variety of resources that are used to define the user interface and other aspects of the application. Let's take a closer look at each of the subfolders within the "res/" directory:

The "animator/" folder contains XML files that define the properties of animations.
The "anim/" folder contains XML files that define tween animations, although property animations can also be saved here. It is preferred, however, to save property animations in the "animator/" directory to distinguish between the two types.
The "color/" folder contains XML files that define a state list of colors.
The "drawable/" folder contains bitmap files (such as .png, .9.png, .jpg, and .gif) or XML files that are compiled into drawable resource subtypes. These include bitmap files, nine-patches (re-sizable bitmaps), state lists, shapes, animation drawables, and other drawables.
The "mipmap/" folder contains drawable files for different launcher icon densities. More information on managing launcher icons with mipmap/ folders can be found on the Android developer website.
The "layout/" folder contains XML files that define user interface layouts.
The "menu/" folder contains XML files that define app menus, such as options menus, context menus, or submenus.
The "raw/" folder contains arbitrary files saved in their raw form. To open these resources with a raw InputStream, call Resources.openRawResource() with the resource ID, which is R.raw.filename. If you need access to original file names and file hierarchy, consider saving some resources in the assets/ directory instead of res/raw/. Files in assets/ aren't given a resource ID, so you can read them only using AssetManager.
The "values/" folder contains XML files that contain simple values, such as strings, integers, and colors. Unlike XML resource files in other "res/" subdirectories that define a single resource based on the XML filename, files in the "values/" directory describe multiple resources. For a file in this directory, each child of the <resources> element defines a single resource. For example, a <string> element creates an R.string resource and a <color> element creates an R.color resource. Because each resource is defined with its own XML element, you can name the file whatever you want and place different resource types in one file. However, for clarity, you might want to place unique resource types in different files. For example, here are some filename conventions for resources you can create in this directory: "arrays.xml" for resource arrays (typed arrays), "colors.xml" for color values, "dimens.xml" for dimension values, "strings.xml" for string values, and "styles.xml" for styles.
The "xml/" folder contains arbitrary XML files that can be read at runtime by calling Resources.getXML(). Various XML configuration files must be saved here, such as a searchable configuration.
The "font/" folder contains font files with extensions such as .ttf, .otf, or .ttc, or XML files that include a <font-family> element. More information about fonts as resources can be found on the Android developer website.
 
Last edited: