@Override public void onBindViewHolder(ViewHolder holder, int position) { Iconify.IconValue iconValue = Iconify.IconValue.values()[position]; holder.iconView.setImageDrawable( new IconDrawable(holder.iconView.getContext(), iconValue) .sizeRes(R.dimen.icon_size) .colorRes(R.color.primary_dark_material_light)); holder.nameView.setText(iconValue.name()); }
@Override public int getItemCount() { return Iconify.IconValue.values().length; }