package com.example.mountaintravel.adapter;

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

import com.example.mountaintravel.adapter.Fragment5Adapter.HoldView;
import com.example.mountaintravel.base.MyBaseAdapter;
import com.smart.gtstrvl.R;

public class Fragment5twoAdapter extends MyBaseAdapter<String> {

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

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

	class HoldView {

		TextView textView;
	}

}
