// Path: NearByDemo/src/com/loveplusplus/demo/nearby/message/NearbyInfo.java
// public class NearbyInfo {
// 
// 	
// 	private String longitude;
// 	private String latitude;
// 	
// 	@Expose
// 	private String name;
// 	@Expose
// 	@SerializedName("pic_url")
// 	private String picUrl;
// 	@Expose
// 	private String sex;
// 	@Expose
// 	private String describe;
// 	@Expose
// 	private String distance;//距离
// 	
// 	
// 	public String getDistance() {
// 		return distance;
// 	}
// 	public String getLongitude() {
// 		return longitude;
// 	}
// 	public void setLongitude(String longitude) {
// 		this.longitude = longitude;
// 	}
// 	public String getLatitude() {
// 		return latitude;
// 	}
// 	public void setLatitude(String latitude) {
// 		this.latitude = latitude;
// 	}
// 	public String getName() {
// 		return name;
// 	}
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	public String getPicUrl() {
// 		return picUrl;
// 	}
// 	public void setPicUrl(String picUrl) {
// 		this.picUrl = picUrl;
// 	}
// 	public String getSex() {
// 		return sex;
// 	}
// 	public void setSex(String sex) {
// 		this.sex = sex;
// 	}
// 	public String getDescribe() {
// 		return describe;
// 	}
// 	public void setDescribe(String describe) {
// 		this.describe = describe;
// 	}
// 	public void setDistance(String distance) {
// 		this.distance = distance;
// 	}
// 	
// }


import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.NetworkImageView;
import com.loveplusplus.demo.nearby.message.NearbyInfo;
	public NearbyInfo getItem(int position) {
		return list == null ? null : list.get(position);
	}

	@Override
	public long getItemId(int position) {
		//return getItem(position).getId();
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View rowView = convertView;
		if (rowView == null) {
			LayoutInflater inflater = (LayoutInflater) context
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

			rowView = inflater.inflate(R.layout.activity_main_list_item, null);
			ViewHolder viewHolder = new ViewHolder();
			
			viewHolder.name = (TextView) rowView.findViewById(R.id.name);
			viewHolder.title = (TextView) rowView.findViewById(R.id.title);
			viewHolder.content = (TextView) rowView.findViewById(R.id.content);
			viewHolder.image = (NetworkImageView) rowView.findViewById(R.id.image);
			
			rowView.setTag(viewHolder);
		}

		ViewHolder holder = (ViewHolder) rowView.getTag();

// Path: NearByDemo/src/com/loveplusplus/demo/nearby/message/NearbyInfo.java
// public class NearbyInfo {
// 
// 	
// 	private String longitude;
// 	private String latitude;
// 	
// 	@Expose
// 	private String name;
// 	@Expose
// 	@SerializedName("pic_url")
// 	private String picUrl;
// 	@Expose
// 	private String sex;
// 	@Expose
// 	private String describe;
// 	@Expose
// 	private String distance;//距离
// 	
// 	
// 	public String getDistance() {
// 		return distance;
// 	}
// 	public String getLongitude() {
// 		return longitude;
// 	}
// 	public void setLongitude(String longitude) {
// 		this.longitude = longitude;
// 	}
// 	public String getLatitude() {
// 		return latitude;
// 	}
// 	public void setLatitude(String latitude) {
// 		this.latitude = latitude;
// 	}
// 	public String getName() {
// 		return name;
// 	}
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	public String getPicUrl() {
// 		return picUrl;
// 	}
// 	public void setPicUrl(String picUrl) {
// 		this.picUrl = picUrl;
// 	}
// 	public String getSex() {
// 		return sex;
// 	}
// 	public void setSex(String sex) {
// 		this.sex = sex;
// 	}
// 	public String getDescribe() {
// 		return describe;
// 	}
// 	public void setDescribe(String describe) {
// 		this.describe = describe;
// 	}
// 	public void setDistance(String distance) {
// 		this.distance = distance;
// 	}
// 	
// }


// Path: NearByDemo/src/com/loveplusplus/demo/nearby/MyListAdapter.java
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.NetworkImageView;
import com.loveplusplus.demo.nearby.message.NearbyInfo;

	public NearbyInfo getItem(int position) {
		return list == null ? null : list.get(position);
	}

	@Override
	public long getItemId(int position) {
		//return getItem(position).getId();
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View rowView = convertView;
		if (rowView == null) {
			LayoutInflater inflater = (LayoutInflater) context
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

			rowView = inflater.inflate(R.layout.activity_main_list_item, null);
			ViewHolder viewHolder = new ViewHolder();
			
			viewHolder.name = (TextView) rowView.findViewById(R.id.name);
			viewHolder.title = (TextView) rowView.findViewById(R.id.title);
			viewHolder.content = (TextView) rowView.findViewById(R.id.content);
			viewHolder.image = (NetworkImageView) rowView.findViewById(R.id.image);
			
			rowView.setTag(viewHolder);
		}

		ViewHolder holder = (ViewHolder) rowView.getTag();

		NearbyInfo item = getItem(position);