// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/utility/Converter.java
// public class Converter {
// 	
// 	public static int dp2px(Context context, float dp){
// 		return (int)(dp * context.getResources().getDisplayMetrics().density);
// 	}
// 
// 	public static int px2dp(Context context, float px){
// 		return (int)(px / context.getResources().getDisplayMetrics().density);
// 	}
// }


import java.util.ArrayList;
import com.daililol.material.appbase.R;
import com.daililol.material.appbase.utility.Converter;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
	public BaseNavigationDrawerListAdapter(Context context){
		this.context = context;
		this.menuList = new ArrayList<MenuItem>();
	}
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return menuList.size();
	}

	@Override
	public Object getItem(int position) {
		
		return null;
	}

	@Override
	public long getItemId(int position) {
		
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {

		MenuItem.Type type = menuList.get(position).type;

		if (type == MenuItem.Type.DIVIDER){
            AbsListView.LayoutParams convertViewParams = new AbsListView.LayoutParams(
// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/utility/Converter.java
// public class Converter {
// 	
// 	public static int dp2px(Context context, float dp){
// 		return (int)(dp * context.getResources().getDisplayMetrics().density);
// 	}
// 
// 	public static int px2dp(Context context, float px){
// 		return (int)(px / context.getResources().getDisplayMetrics().density);
// 	}
// }


// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/component/BaseNavigationDrawerListAdapter.java
import java.util.ArrayList;
import com.daililol.material.appbase.R;
import com.daililol.material.appbase.utility.Converter;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

	public BaseNavigationDrawerListAdapter(Context context){
		this.context = context;
		this.menuList = new ArrayList<MenuItem>();
	}
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return menuList.size();
	}

	@Override
	public Object getItem(int position) {
		
		return null;
	}

	@Override
	public long getItemId(int position) {
		
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {

		MenuItem.Type type = menuList.get(position).type;

		if (type == MenuItem.Type.DIVIDER){
            AbsListView.LayoutParams convertViewParams = new AbsListView.LayoutParams(
                    AbsListView.LayoutParams.MATCH_PARENT, Converter.dp2px(context, 17));