// Path: app/src/main/java/bf/io/openshop/interfaces/DrawerSubmenuRecyclerInterface.java
// public interface DrawerSubmenuRecyclerInterface {
// 
//     void onSubCategorySelected(View v, DrawerItemCategory drawerItemCategory);
// 
// }


import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import bf.io.openshop.R;
import bf.io.openshop.entities.drawerMenu.DrawerItemCategory;
import bf.io.openshop.interfaces.DrawerSubmenuRecyclerInterface;
package bf.io.openshop.UX.adapters;




/**
 * Adapter handling list of drawer sub-items.
 */
public class DrawerSubmenuRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private final DrawerSubmenuRecyclerInterface drawerSubmenuRecyclerInterface;
    private LayoutInflater layoutInflater;
    private List<DrawerItemCategory> drawerItemCategoryList = new ArrayList<>();

    /**
     * Creates an adapter that handles a list of drawer sub-items.
     *
     * @param drawerSubmenuRecyclerInterface listener indicating events that occurred.
     */
// Path: app/src/main/java/bf/io/openshop/interfaces/DrawerSubmenuRecyclerInterface.java
// public interface DrawerSubmenuRecyclerInterface {
// 
//     void onSubCategorySelected(View v, DrawerItemCategory drawerItemCategory);
// 
// }


// Path: app/src/main/java/bf/io/openshop/UX/adapters/DrawerSubmenuRecyclerAdapter.java
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import bf.io.openshop.R;
import bf.io.openshop.entities.drawerMenu.DrawerItemCategory;
import bf.io.openshop.interfaces.DrawerSubmenuRecyclerInterface;

package bf.io.openshop.UX.adapters;




/**
 * Adapter handling list of drawer sub-items.
 */
public class DrawerSubmenuRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private final DrawerSubmenuRecyclerInterface drawerSubmenuRecyclerInterface;
    private LayoutInflater layoutInflater;
    private List<DrawerItemCategory> drawerItemCategoryList = new ArrayList<>();

    /**
     * Creates an adapter that handles a list of drawer sub-items.
     *
     * @param drawerSubmenuRecyclerInterface listener indicating events that occurred.
     */
    public DrawerSubmenuRecyclerAdapter(DrawerSubmenuRecyclerInterface drawerSubmenuRecyclerInterface) {