You should add the getId(int position) in the adapter.
Ahmad Fadli Basyari
11

data.get(position).getId();//(data is arraylist)

This line is as u said in getItemId(int position) method in adapter class.

but in this method, we need to add this code and that is where i’m getting error. in this *****.getId();