@Override
 public int getCount() {
   return AppConstants.CATEGORY.values().length;
 }
  @Override
  public Fragment getItem(int arg0) {

    return CategoryFragment.newInstance(AppConstants.CATEGORY.values()[arg0].id);
  }