I am currently programming an Android application. Now I found out that you cannot place resource objects, say, an image in a drop-down folder and call it "myTestImage.jpg". This will give you a compiler error since the camel case syntax is not allowed, so you will need to rename it as "my_test_image.jpg".
But what about the identifiers that you define in the XML file. Say you have the following definition
<TextView android:id="@+id/myTextViewFirstname" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Firstname" />
This is the correct definition, it compiles and works fine on my Android emulator, although, as you can see, I specify the identifier in the case camel syntax.
Android patterns now always use lowercase letters and underscores. Is it just a naming convention for using lower case with underscore for an identifier, or can cause problems on a real device?
thank
android mobile
Juri Dec 02 '09 at 11:17 2009-12-02 11:17
source share