I made an Adapter for my recyclerView. This adapter works when I use on any xxxActivity.java but when I try to use is on a Fragment Its hows error. Doesn't let me Pass the onClickHandler() that I created in Adapter. 
I am Setting Adapter Like this -

```
events_recyclerview.setAdapter(new FixedPlaceListAdapter(getContext(), placelist, mClickHandler)); //ClickListener doesn't work :'(

```

Another try was like --

```
events_recyclerview.setAdapter(new FixedPlaceListAdapter(getContext(), placelist, getmClickHandler()));

```

Here, I implemented getClickHandler() in the Fragment--

```
public FixedPlaceListAdapter.FixedPlaceListAdapterOnclickHandler getmClickHandler() {
    return mClickHandler;
}   //Still doesn't work :'(

```

and the Adapter Part-- 
Constructor like this-

```
public FixedPlaceListAdapter(Context mContext, List<PlaceBean> 
placeBeanList, FixedPlaceListAdapterOnclickHandler mClickHandler) {
    this.mContext = mContext;
    this.placeBeanList = placeBeanList;
    this.mClickHandler = mClickHandler;
}

```

![Here is the Error showing in this image!](https://i.stack.imgur.com/PdqfN.jpg)

I tried to do this ... but still doesn't work--

```
events_recyclerview.setAdapter(new FixedPlaceListAdapter(getContext(), placelist, FixedPlaceListAdapter.FixedPlaceListAdapterOnclickHandler.mClickhandler));

```

here is my full adapter code-

```
public class FixedPlaceListAdapter extends RecyclerView.Adapter<FixedPlaceListAdapter.FixedPlaceListAdapterViewHolder> {

private final FixedPlaceListAdapterOnclickHandler mClickHandler;
Context mContext;
List<PlaceBean> placeBeanList;

public FixedPlaceListAdapter(Context mContext, List<PlaceBean> placeBeanList, FixedPlaceListAdapterOnclickHandler mClickHandler) {
    this.mContext = mContext;
    this.placeBeanList = placeBeanList;
    this.mClickHandler = mClickHandler;
}

public void setData(List<PlaceBean> placeBeanList) {
    this.placeBeanList = placeBeanList;
    notifyDataSetChanged();
}

@Override
public FixedPlaceListAdapterViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    LayoutInflater inflater = LayoutInflater.from(mContext);
    View view = inflater.inflate(R.layout.top_list_single, parent, false);
    return new FixedPlaceListAdapterViewHolder(view);
}

@Override
public void onBindViewHolder(FixedPlaceListAdapterViewHolder holder, int position) {
    PlaceBean pb = placeBeanList.get(position);
    holder.nameTextView.setText(pb.getName());
    holder.addressTextView.setText(pb.getVicinity());
    holder.rating.setRating(pb.getRating());

    if (pb.getPhotoref() != null) {
        String imageUrl = UrlsUtil.getSinglePhotoUrlString(mContext, pb.getPhotoref(), "350", "300");
        Picasso.with(mContext)
                .load(imageUrl)
                .into(holder.thumbnailImage);
    }
}

@Override
public int getItemCount() {
    return placeBeanList.size();
}

public interface FixedPlaceListAdapterOnclickHandler {
    void onClick(String id);
}

public class FixedPlaceListAdapterViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {

    TextView nameTextView;
    TextView addressTextView;
    RatingBar rating;
    ImageView thumbnailImage;

    public FixedPlaceListAdapterViewHolder(View itemView) {
        super(itemView);
        nameTextView = (TextView) itemView.findViewById(R.id.place_name_now_in_list);
        addressTextView = (TextView) itemView.findViewById(R.id.address_in_list);
        rating = (RatingBar) itemView.findViewById(R.id.rating_single_place_in_list);
        thumbnailImage = (ImageView) itemView.findViewById(R.id.place_image_thumb);
        itemView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        String placeID = placeBeanList.get(getAdapterPosition()).getPlaceref();
        mClickHandler.onClick(placeID);
    }
}

```

}

Need Help!