package com.example.mountaintravel.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.mountaintravel.base.MyBaseAdapter;
import com.smart.gtstrvl.R;


public class Loginadapter extends MyBaseAdapter<String> {

	public Loginadapter(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		Info info=null;
		if (convertView==null) {
			convertView=inflater.inflate(R.layout.team_list, null);
			info=new Info();
			info.textView=(TextView) convertView.findViewById(R.id.teamlist_tvname);
			
			
			convertView.setTag(info);
		}else{
				info = (Info) convertView.getTag();
		}
		info.textView.setText(getItem(position));
		return convertView;
	}
	class Info{
		TextView textView;
		
	}

}
