参见英文答案 > Difference between R.layout and android.R.layout 4个
谁能解释这个问题;什么是’R’之间的差异
R.id.myListView
&安培;
android.R.layout.simple_list_item_1
这些2’R’不是同一类吗?
* Some people has down Voted this question. I need to ask them the reason. If you answered the duplicate question & then down Voted me it would have made sense. Neither answered my question nor the duplicate one!!! I mean whats the point of down voting some one without even helping? isn’t this site supposed to be for help for programmers!! Weird!! **
解决方法:
R.layout.*,R.id.*,实际上任何没有android.-部分的R.something都指向你资源文件夹中的某些资源,例如: drawables,字符串,布局,小部件ID等.android.R.*指的是SDK附带的标准android项目