package com.example.mountaintravel.adapter;

import java.util.List;

import com.smart.gtstrvl.R;


import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class startingPointAdapter extends BaseAdapter {
	private List<String> list;
	private LayoutInflater mLayoutInflater;
	private Context context;

	public startingPointAdapter(Context context, List<String> list) {
		super();
		this.mLayoutInflater = LayoutInflater.from(context);
		this.context = context;
		this.list = list;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return list.size();
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		if (convertView == null) {
			convertView = mLayoutInflater.inflate(R.layout.item, parent, false);
		}
		TextView mView ;
		mView = (TextView) convertView.findViewById(R.id.item_text);
		mView.setText(list.get(position));
		mView.setTextColor(Color.WHITE);
		return convertView;
	}

}
