我想在不同的活动中显示从gridview到的图像。
如何从Gridview获取图像的位置?bindView是视图持有者
在onCreateViewHolder中输入
onCreateViewHolder
vh = ViewHolder(...) vh.imageView.setOnClickListener { val position = vh.adapterPosition position is the current position of the imageview }