use of flow.sample.tree.model.Contact in project flow by square.
the class ContactsAdapter method getView.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Contact contact = getItem(position);
View view = convertView;
if (view == null) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
view = inflater.inflate(R.layout.list_contacts_screen_row_view, parent, false);
}
((TextView) view.findViewById(R.id.contact_name)).setText(contact.name);
((TextView) view.findViewById(R.id.contact_email)).setText(contact.email);
return view;
}
Aggregations