// 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 android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.daililol.material.appbase.utility.Converter;
import java.util.Vector;
                    Converter.dp2px(itemView.getContext(), 16), 0);
            ((LinearLayout)itemView).setGravity(Gravity.LEFT | Gravity.START | Gravity.CENTER);
            itemView.setBackgroundResource(R.drawable.touch_feedback_holo_light);
            itemView.setLayoutParams(layoutParams);



            ImageView imageView = new ImageView(viewGroup.getContext());
            int imageSize = Converter.dp2px(viewGroup.getContext(), 64);
            LinearLayout.LayoutParams imageParams = new LinearLayout.LayoutParams(imageSize, imageSize);
            imageView.setLayoutParams(imageParams);
            imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
            imageView.setId(android.R.id.icon1);

            TextView textView = new TextView(viewGroup.getContext());
            textView.setTextSize(18);
            textView.setId(android.R.id.text1);

            ((LinearLayout)itemView).addView(imageView);
            ((LinearLayout)itemView).addView(textView);

            viewHolder = new ViewHolder(itemView);

        }else{
            viewHolder = (ViewHolder)itemView.getTag();
        }

        viewHolder.textView.setText(dataSet.get(i));
        if (i == 3) {
            viewHolder.imageView.setImageResource(R.drawable.collapse_slash);
// 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: app/src/main/java/com/daililol/material/appbase/example/ExampleListViewAdapter.java
import android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.daililol.material.appbase.utility.Converter;
import java.util.Vector;

                    Converter.dp2px(itemView.getContext(), 16), 0);
            ((LinearLayout)itemView).setGravity(Gravity.LEFT | Gravity.START | Gravity.CENTER);
            itemView.setBackgroundResource(R.drawable.touch_feedback_holo_light);
            itemView.setLayoutParams(layoutParams);



            ImageView imageView = new ImageView(viewGroup.getContext());
            int imageSize = Converter.dp2px(viewGroup.getContext(), 64);
            LinearLayout.LayoutParams imageParams = new LinearLayout.LayoutParams(imageSize, imageSize);
            imageView.setLayoutParams(imageParams);
            imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
            imageView.setId(android.R.id.icon1);

            TextView textView = new TextView(viewGroup.getContext());
            textView.setTextSize(18);
            textView.setId(android.R.id.text1);

            ((LinearLayout)itemView).addView(imageView);
            ((LinearLayout)itemView).addView(textView);

            viewHolder = new ViewHolder(itemView);

        }else{
            viewHolder = (ViewHolder)itemView.getTag();
        }

        viewHolder.textView.setText(dataSet.get(i));
        if (i == 3) {
            viewHolder.imageView.setImageResource(R.drawable.collapse_slash);
            viewHolder.imageView.setVisibility(View.VISIBLE);