LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
return new ViewHolder(inflater.inflate(R.layout.category_item, parent, false));
}
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
<BUG>Glide.with(activity).load(list.get(position).categoryImage).into((ImageView) holder.v.findViewById(R.id.image));
</BUG>
((TextView) holder.v.findViewById(R.id.title)).setText(list.get(position).categoryName);
holder.v.findViewById(R.id.bg).setOnClickListener(new View.OnClickListener() {
@Override

LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
return new ViewHolder(inflater.inflate(R.layout.category_item, parent, false));
}
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
Glide.with(activity).load(list.get(position).categoryImage).thumbnail(0.2f).into((ImageView) holder.v.findViewById(R.id.image));
((TextView) holder.v.findViewById(R.id.title)).setText(list.get(position).categoryName);
holder.v.findViewById(R.id.bg).setOnClickListener(new View.OnClickListener() {
@Override
