// Path: ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/custom/BaseViewHolder.java
// public abstract class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     protected RecyclerClickListener onRecyclerClickListener;
// 
//     public interface RecyclerClickListener {
//         void onClick(RecyclerView.ViewHolder vh, int position);
//         void onLongClick(RecyclerView.ViewHolder vh, int position);
//     }
// 
//     public BaseViewHolder(View v, RecyclerClickListener onRecyclerClickListener ) {
//         super(v);
//         this.onRecyclerClickListener = onRecyclerClickListener;
//         v.setOnClickListener(this);
//         v.setOnLongClickListener(this);
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (onRecyclerClickListener != null) onRecyclerClickListener.onClick(this, getAdapterPosition());
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (onRecyclerClickListener != null) onRecyclerClickListener.onLongClick(this, getAdapterPosition());
//         return true;
//     }
// 
// }
// 
// Path: ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/entities/Category.java
// public class Category extends RealmObject {
// 
//     @PrimaryKey
//     private String id;
// 
//     private String name;
//     private int type;
//     private RealmList<Expense> expenses;
// 
//     public Category() {
//     }
// 
//     public Category(String name, @IExpensesType int type) {
//         this.name = name;
//         this.type = type;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getType() {
//         return type;
//     }
// 
//     public void setType(int type) {
//         this.type = type;
//     }
// 
//     public RealmList<Expense> getExpenses() {
//         return expenses;
//     }
// 
//     public void setExpenses(RealmList<Expense> expenses) {
//         this.expenses = expenses;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public static List<Category> getCategoriesIncome() {
//         return getCategoriesForType(IExpensesType.MODE_INCOME);
//     }
// 
//     public static List<Category> getCategoriesExpense() {
//         return getCategoriesForType(IExpensesType.MODE_EXPENSES);
//     }
// 
//     public static List<Category> getCategoriesForType(@IExpensesType int type){
//         return RealmManager.getInstance().getRealmInstance().where(Category.class)
//                 .equalTo("type", type)
//                 .findAll();
//     }
// 
// }


import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import com.pedrocarrillo.expensetracker.ExpenseTrackerApp;
import com.pedrocarrillo.expensetracker.R;
import com.pedrocarrillo.expensetracker.custom.BaseViewHolder;
import com.pedrocarrillo.expensetracker.entities.Category;
import java.util.List;
package com.pedrocarrillo.expensetracker.adapters;




/**
 * Created by pcarrillo on 17/09/2015.
 */
public class CategoriesAdapter extends BaseRecyclerViewAdapter<CategoriesAdapter.CategoryViewHolder> {

    private List<Category> mCategoryList;
    private int lastPosition = -1;
// Path: ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/custom/BaseViewHolder.java
// public abstract class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
// 
//     protected RecyclerClickListener onRecyclerClickListener;
// 
//     public interface RecyclerClickListener {
//         void onClick(RecyclerView.ViewHolder vh, int position);
//         void onLongClick(RecyclerView.ViewHolder vh, int position);
//     }
// 
//     public BaseViewHolder(View v, RecyclerClickListener onRecyclerClickListener ) {
//         super(v);
//         this.onRecyclerClickListener = onRecyclerClickListener;
//         v.setOnClickListener(this);
//         v.setOnLongClickListener(this);
//     }
// 
//     @Override
//     public void onClick(View v) {
//         if (onRecyclerClickListener != null) onRecyclerClickListener.onClick(this, getAdapterPosition());
//     }
// 
//     @Override
//     public boolean onLongClick(View v) {
//         if (onRecyclerClickListener != null) onRecyclerClickListener.onLongClick(this, getAdapterPosition());
//         return true;
//     }
// 
// }
// 
// Path: ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/entities/Category.java
// public class Category extends RealmObject {
// 
//     @PrimaryKey
//     private String id;
// 
//     private String name;
//     private int type;
//     private RealmList<Expense> expenses;
// 
//     public Category() {
//     }
// 
//     public Category(String name, @IExpensesType int type) {
//         this.name = name;
//         this.type = type;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getType() {
//         return type;
//     }
// 
//     public void setType(int type) {
//         this.type = type;
//     }
// 
//     public RealmList<Expense> getExpenses() {
//         return expenses;
//     }
// 
//     public void setExpenses(RealmList<Expense> expenses) {
//         this.expenses = expenses;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public static List<Category> getCategoriesIncome() {
//         return getCategoriesForType(IExpensesType.MODE_INCOME);
//     }
// 
//     public static List<Category> getCategoriesExpense() {
//         return getCategoriesForType(IExpensesType.MODE_EXPENSES);
//     }
// 
//     public static List<Category> getCategoriesForType(@IExpensesType int type){
//         return RealmManager.getInstance().getRealmInstance().where(Category.class)
//                 .equalTo("type", type)
//                 .findAll();
//     }
// 
// }


// Path: ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/adapters/CategoriesAdapter.java
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import com.pedrocarrillo.expensetracker.ExpenseTrackerApp;
import com.pedrocarrillo.expensetracker.R;
import com.pedrocarrillo.expensetracker.custom.BaseViewHolder;
import com.pedrocarrillo.expensetracker.entities.Category;
import java.util.List;

package com.pedrocarrillo.expensetracker.adapters;




/**
 * Created by pcarrillo on 17/09/2015.
 */
public class CategoriesAdapter extends BaseRecyclerViewAdapter<CategoriesAdapter.CategoryViewHolder> {

    private List<Category> mCategoryList;
    private int lastPosition = -1;
    private BaseViewHolder.RecyclerClickListener onRecyclerClickListener;