Search in sources :

Example 6 with Icon

use of com.joanzapata.iconify.Icon in project android-iconify by JoanZapata.

the class IconAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(ViewHolder viewHolder, int position) {
    Icon icon = icons[position];
    viewHolder.icon.setText("{" + icon.key() + "}");
    viewHolder.name.setText(icon.key());
}
Also used : Icon(com.joanzapata.iconify.Icon)

Aggregations

Icon (com.joanzapata.iconify.Icon)6 Context (android.content.Context)1 NonNull (android.support.annotation.NonNull)1 StringRes (android.support.annotation.StringRes)1 ViewPager (android.support.v4.view.ViewPager)1 View (android.view.View)1 IconDrawable (com.joanzapata.iconify.IconDrawable)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 SnackbarErrorNotification (org.edx.mobile.http.notifications.SnackbarErrorNotification)1 StaticFragmentPagerAdapter (org.edx.mobile.view.adapters.StaticFragmentPagerAdapter)1