Alex Rivera | Logout

Naming rules for Android resources

Asked 2011-05-10T11:34:55.580
10

where can I find the naming rules for Android resources? I found out thanks to compilation errors that I must use characters within [a-z0-9._], but I also have an error with an image named 401.png. When using it in my layout using

@drawable/401

I get the following compilation error:

invalid VariableDeclaratorId

I can't find these rules in the doc, and I'd like to know all of them before naming my files.

Thanks

Edit
Report

1 Answer

0

Your convention is correct, except that you can't start your file names with a number.

answered 2011-05-10T11:39:20.027

Your Answer