@Override
 public final boolean isEnabled(int position) {
   ItemType item = getItem(position);
   if (!mTabsClickable && !item.isHeader()) return false;
   if (item.isHeader()) return item.getActionCallback() != null;
   return item.isClickable();
 }
  @Override
  public View onViewCreated(int index, View recycled, ItemType item) {
    if (item.isHeader()) {
      setupHeader(item, recycled);
      return recycled;
    }

    TextView title = (TextView) recycled.findViewById(android.R.id.title);
    if (title != null) onProcessTitle(title, item, mAccentColor);
    TextView content = (TextView) recycled.findViewById(android.R.id.content);
    if (content != null) onProcessContent(content, item);
    ImageView icon = (ImageView) recycled.findViewById(android.R.id.icon);
    if (icon != null) {
      if (onProcessThumbnail(icon, item)) {
        icon.setVisibility(View.VISIBLE);
      } else {
        icon.setVisibility(View.GONE);
      }
    }
    View menu = recycled.findViewById(android.R.id.button1);
    if (menu != null) {
      if (onProcessMenu(menu, item)) {
        menu.setVisibility(View.VISIBLE);
      } else {
        menu.setOnClickListener(null);
        menu.setVisibility(View.INVISIBLE);
      }
    }
    invalidatePadding(index, recycled);
    return recycled;
  }