参见英文答案 > 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项目
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。