Constants for resource types in Android -


What are the constants for different resource types (i.e. "drawable") in Android?

I

Example:

  last string type = context.getResources (return)) .getResourceTypeName (resid); ("Drawable" .equalsIgnoreCase (type)) {// something} else ("xml" .equalsIgnoreCase (type)) {// Something else} // TODO: Change the above string with system stents  

(I can make my own constants, obviously, but I prefer to use system constants to ensure compatibility upward)

It seems that has been hardcoded:

\ 22 drawer \% 22 + \% 22xml \% 22 and exact_package = GIT: //android.git.kernel.org/platform/ Frameworks / base.git


Comments