Code example for TwoLineListItem

Methods: getText1getText2

0
		} else { 
			view = (TwoLineListItem) convertView;
		} 
 
		// Set value for the first text field 
		if (view.getText1() != null) {
			String summary = item.getSummary();
			view.getText1().setText(Html.fromHtml(summary));
		} 
 
		// set value for the second text field 
		if (view.getText2() != null) {
			String detail = item.getDetail();
			view.getText2().setText(Html.fromHtml(detail));
		} 
 
		return view;
	} 
} 
Experience pair programming with AI  Get Codota for Java