问题描述
我陷入了毕加索一种所谓的开放性娱乐方法。
我在recyclerview中使用URL来获取图像。我认为这不是recyclerview的问题。我认为它更可能是错误。
override fun onBindViewHolder(holder: RecyclerView.ViewHolder,position: Int) {
Picasso.get().load(arrayPlaces[position].url).into(holder.itemView.findViewById(R.id.mainImage))
}
对于解决方案,我尝试过:
GitHub: https://github.com/sophin123/RecyclerViewwithImages
解决方法
通过在findViewById ()
中添加ImageView来解决它>>> print(tmp)
0 1 2
0 0.0 0.0 0.0
1 0.8 6.4 28.8