LayoutInflater attachToRoot 警告 leojiao123 2018-12-20 227 阅读1分钟 convertView = LayoutInflater.from(context).inflate(R.layout.item, parent, false); 这样使用可以避免警告