android.R

Not sure. But here is some analysis and a guess

Consider the following code in one of the samples


TypeFace mFace = Typeface.createFromAsset(
                          getContext().getAssets(),
                                  "font/samplefont.ttf");

The directory and file "font/samplefont.ttf" exists in the sub directory of "assets".

Although most sample applications seem to have an empty assets directory, the idea of assets seem to be tightly plugged into Resources.

The class "AssetManager" indicates that this allows to read "raw" files from this sub directory.

In short the answer may be that all "raw" files that you want to read you want to place them in this subdirectory as the path to the AssetManager is off this root path.

For more see the "open" method of the AssetManager class.

API for AssetManager class

what are android resource references?

Search for: what are android resource references?

what is android batch retrieval of resources?

Search for: what is android batch retrieval of resources?

what is the functionality and behavior of resource compiler in android?

Search for: what is the functionality and behavior of resource compiler in android?

How to use Android raw resources?

Search for: How to use Android raw resources?

How to use XmlPull API?

OpenRawResource

Search for: OpenRawResource

Where are standard colors defined for Android?

Search for: Where are standard colors defined for Android?

what are stretchable images in Android?

Search for: what are stretchable images in Android?

Validate the id creation concept and why?

Read through theme resources and elaborate

elaborate on drawable resources

What is Android Color Format?

Search Google for: What is Android Color Format?

Search Android Developers Group for: What is Android Color Format?

Search Android Beginers Group for: What is Android Color Format?

Search Google Code for: What is Android Color Format?

Search Android Issues Database for: What is Android Color Format?

How does Android map XML attributes to Java code?

Search Google for: How does Android map XML attributes to Java code?

Search Android Developers Group for: How does Android map XML attributes to Java code?

Search Android Beginers Group for: How does Android map XML attributes to Java code?

Search Google Code for: How does Android map XML attributes to Java code?

Search Android Issues Database for: How does Android map XML attributes to Java code?

What does shape xml tag translates to in Android

Search Google for: What does shape xml tag translates to in Android

Search Android Developers Group for: What does shape xml tag translates to in Android

Search Android Beginers Group for: What does shape xml tag translates to in Android

Search Google Code for: What does shape xml tag translates to in Android

Search Android Issues Database for: What does shape xml tag translates to in Android

What are limitations of drawable tag in the values sub directory?

Search for: What are limitations of drawable tag in the values sub directory?

How can I specify a rounded rectangle drawable?

Search for: How can I specify a rounded rectangle drawable?

How many drawables are allowed as Resources in Android?

Search for: How many drawables are allowed as Resources in Android?

Can I construct a PaintDrawable through a resource?

Search for: Can I construct a PaintDrawable through a resource?

Study Resources.getDrawable() source code


<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#f0600000"/>
    <stroke android:width="3dp" color="#ffff8080"/>
    <corners android:radius="13dp" />
    <padding android:left="10dp" android:top="10dp"
        android:right="10dp" android:bottom="10dp" />
</shape>

This will become a gradientshape

GradientDrawable

Search Google for: GradientDrawable

Search Android Developers Group for: GradientDrawable

Search Android Beginers Group for: GradientDrawable

Search Google Code for: GradientDrawable

Search Android Issues Database for: GradientDrawable

understand layout_width and height


array
attr
id
plurals
style
xml