price = doc.select(".deal-price");
title = doc.select(".deal-tile-content");
String p = String.valueOf(price);
String t = title.toString();
public class MyAdapter extends ArrayAdapter<News> {
public MyAdapter(Context context, int item, List<News> newsList) {
super(context, 0, newsList);
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView;
if (view == null) {
view = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);
}
News n = getItem(position);
TextView tvName = (TextView) view.findViewById(R.id.tvName);
TextView tvPrice = (TextView) view.findViewById(R.id.tvPrice);
tvName.setText(n.mTitle);
tvPrice.setText(n.mPrice);
return view;
}
}