@Override public void bindItem(LocationItem locationItem, int position, LocationObject data) { locationItem.bind(data, false); if (position == list.size() - 1) { loadMore(); } }
@Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = getLayoutInflater().inflate(R.layout.location_list_item, listView, false); } LocationItem locationItem = LocationItem.from(convertView); LocationObject data = getItem(position); bindItem(locationItem, position, data); return convertView; }