// 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;
package com.daililol.material.appbase.example;




/**
 * Created by DennyShum on 8/22/15.
 */
public class ExampleListViewAdapter extends BaseAdapter{

    private Vector<String> dataSet;

    public ExampleListViewAdapter(Vector<String> dataSet){
        this.dataSet = dataSet;
    }


    @Override
    public int getCount() {
        return dataSet.size();
    }

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

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

    @Override
    public View getView(int i, View itemView, ViewGroup viewGroup) {

        ViewHolder viewHolder;

        if (itemView == null){
            itemView = new LinearLayout(viewGroup.getContext());
            ((LinearLayout)itemView).setOrientation(LinearLayout.HORIZONTAL);
            AbsListView.LayoutParams 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: 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;

package com.daililol.material.appbase.example;




/**
 * Created by DennyShum on 8/22/15.
 */
public class ExampleListViewAdapter extends BaseAdapter{

    private Vector<String> dataSet;

    public ExampleListViewAdapter(Vector<String> dataSet){
        this.dataSet = dataSet;
    }


    @Override
    public int getCount() {
        return dataSet.size();
    }

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

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

    @Override
    public View getView(int i, View itemView, ViewGroup viewGroup) {

        ViewHolder viewHolder;

        if (itemView == null){
            itemView = new LinearLayout(viewGroup.getContext());
            ((LinearLayout)itemView).setOrientation(LinearLayout.HORIZONTAL);
            AbsListView.LayoutParams layoutParams =
                    new AbsListView.LayoutParams(AdapterView.LayoutParams.MATCH_PARENT, Converter.dp2px(itemView.getContext(), 56));