R.id.myListView
Your R.java
file (Generated automatically in project/gen folder)
When your application is compiled, aap generates the R class, which contains resource IDs for all the resources in your res/ directory. For each type of resource, there is an R subclass (for example, R.drawable
for all drawable resources) and for each resource of that type, there is a static integer (for example, R.drawable.icon
). This integer is the resource ID that you can use to retrieve your resource.
android.R.layout.simple_list_item_1
For example android.R.id.text1
(in Java) is an identifier of a TextView
in the Android framework. You can find it in many layouts from the framework (select_dialog_item, select_dialog_singlechoice, simple_dropdown_item_1line, etc.).