Android: resource with numbers. Is it possible?

I would like to know if I can somehow create a resource with the ability to draw (e.g. png) called 787.png. Since Eclipse will not allow me to compile the project, if I do not modify it.

Thanks in advance.

+5
source share
1 answer

The reason you cannot have a resource with a numeric name is because variable names cannot begin with numbers. For each resource, there is a generated constant variable (in R.java) with the name of the resource. If you look in your Eclipse project, in the gen folder you will see R.java

, .

, , , .

+12

All Articles