我正在学习如何在Android Studio中创建ListView。我查看了很多ListView示例,并且在示例中有一部分我不明白为什么会使用这些示例。下面的代码行包括我的意思是:“父,真”或“空,真”的功能
View rowView = inflater.inflate(R.layout.second_layout, parent, false//the function of "parent, false"?);
View itemView = inflater.inflate(R.layout.listview_item, null, true//the function of "null, true"?);
什么是“父,真”和“空,真”用于?
任何帮助理解
LayoutInflater的在线文档解释得非常好... –