更新时间:2022-12-20 17:05:54
您可以更改代码
String name = ((TextView) view.findViewById(R.id.title)).getText().toString();
bitmap = ((Model) modelList.get(position)).getThumbnailUrl();
String rate = ((TextView) view.findViewById(R.id.rating)).getText().toString();
String genres = ((TextView) view.findViewById(R.id.genre)).getText().toString();
到
Model model=(Model)adapter.getItem(position);
它将获得您单击的位置的模型,并将该模型作为序列化或您要执行的操作传递.
It will get the model on which position you clicked and pass this model as Serialized or what you want to do.
希望这可以解决问题.