public class IcecreamListFragment extends Fragment OnItemClickListener {
..
..
..
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
}

view.setOnItemClickListener(this)