package com.kekenzy.viewer;


import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.SimpleCursorAdapter;
import android.widget.TextView;



public class ListRunningItemAdapter extends SimpleCursorAdapter{

	private LayoutInflater mInflater;
	private Cursor mCursor;
	static private Context mContext;
	private int mLayout;
	private String[] mFrom;
	private int[] mTo;

	public ListRunningItemAdapter (Context context, int layout, Cursor c, String[] from, int[] to) {
		super(context, layout, c, from, to);
		mCursor = c;
		mLayout = layout;
		mContext = context;
		mFrom = from;
		mTo = to;
//		mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//		setViewBinder(new ListRunningItemBinder());
	}
//	getFormatTime(


//	static class ListRunningItemBinder implements SimpleCursorAdapter.ViewBinder{
//
//		@Override
//		public boolean setViewValue(View view, Cursor cursor, int column_index) {
//			int time = cursor.getColumnIndex("time");
//			if( column_index == time ){
//				int recordTime = cursor.getInt(time);
//				String sStatus = getFormatTime(recortTime);
//				TextView text = (TextView)view;
//				text.setText(sStatus);
//
//                return true;
//			}
//
//			return false;
//
//		}
//
//	}

}
