// Path: app/src/main/java/kesshou/android/daanx/util/Adapter/holder/Menu.java
// public class Menu {
// 	public int icon;
// 	public String name;
// 	public String viewText;
// 	public View.OnClickListener onClickListener;
// 	public int color;
// 
// 	public Menu(int i, String n, String vt, View.OnClickListener o){
// 		icon = i;
// 		name = n;
// 		viewText = vt;
// 		onClickListener = o;
// 		color = Color.GRAY;
// 	}
// 
// 	public Menu(int i,int c, String n, String vt, View.OnClickListener o){
// 		icon = i;
// 		name = n;
// 		viewText = vt;
// 		onClickListener = o;
// 		color = c;
// 	}
// }


import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.support.constraint.ConstraintLayout;
import android.support.v4.content.ContextCompat;
import android.support.v4.graphics.drawable.DrawableCompat;
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.TextView;
import java.util.ArrayList;
import kesshou.android.daanx.R;
import kesshou.android.daanx.util.Adapter.holder.Menu;
package kesshou.android.daanx.util.Adapter;




/**
 * Created by yoyoIU on 2016/10/25.
 */

public class MenuListAdapter extends RecyclerView.Adapter<MenuListAdapter.ViewHolder> {

	private ArrayList<Menu> menus;
	private Context mContext;

	class ViewHolder extends RecyclerView.ViewHolder {
		ConstraintLayout constraintLayout;
		ImageView imageIcon;
		TextView textName;
		TextView textText;
		ViewHolder(View v) {
			super(v);
			constraintLayout = (ConstraintLayout) v.findViewById(R.id.list_item);
			imageIcon = (ImageView) v.findViewById(R.id.icon);
			textName = (TextView) v.findViewById(R.id.name);
			textText = (TextView) v.findViewById(R.id.view_text);
		}
	}

// Path: app/src/main/java/kesshou/android/daanx/util/Adapter/holder/Menu.java
// public class Menu {
// 	public int icon;
// 	public String name;
// 	public String viewText;
// 	public View.OnClickListener onClickListener;
// 	public int color;
// 
// 	public Menu(int i, String n, String vt, View.OnClickListener o){
// 		icon = i;
// 		name = n;
// 		viewText = vt;
// 		onClickListener = o;
// 		color = Color.GRAY;
// 	}
// 
// 	public Menu(int i,int c, String n, String vt, View.OnClickListener o){
// 		icon = i;
// 		name = n;
// 		viewText = vt;
// 		onClickListener = o;
// 		color = c;
// 	}
// }


// Path: app/src/main/java/kesshou/android/daanx/util/Adapter/MenuListAdapter.java
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.support.constraint.ConstraintLayout;
import android.support.v4.content.ContextCompat;
import android.support.v4.graphics.drawable.DrawableCompat;
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.TextView;
import java.util.ArrayList;
import kesshou.android.daanx.R;
import kesshou.android.daanx.util.Adapter.holder.Menu;

package kesshou.android.daanx.util.Adapter;




/**
 * Created by yoyoIU on 2016/10/25.
 */

public class MenuListAdapter extends RecyclerView.Adapter<MenuListAdapter.ViewHolder> {

	private ArrayList<Menu> menus;
	private Context mContext;

	class ViewHolder extends RecyclerView.ViewHolder {
		ConstraintLayout constraintLayout;
		ImageView imageIcon;
		TextView textName;
		TextView textText;
		ViewHolder(View v) {
			super(v);
			constraintLayout = (ConstraintLayout) v.findViewById(R.id.list_item);
			imageIcon = (ImageView) v.findViewById(R.id.icon);
			textName = (TextView) v.findViewById(R.id.name);
			textText = (TextView) v.findViewById(R.id.view_text);
		}
	}

	public MenuListAdapter(ArrayList<Menu> data,Context context) {