Code example for ListView.FixedViewInfo

	private class ExtendedListView extends ListView {
		public FixedViewInfo info;
		public ExtendedListView(Context context) {
			info = new FixedViewInfo();
	public Builder setSingleChoiceItems(Cursor cursor, int checkedItem,
			String labelColumn, OnClickListener listener) {
		ListAdapter sourceAdapter = new SimpleCursorAdapter(activity,
				android.R.layout.select_dialog_singlechoice, cursor,
				new String[] { labelColumn }, new int[] { });
		View view = activity.getLayoutInflater().inflate(
				android.R.layout.select_dialog_singlechoice, null, false);
		((TextView) view.findViewById(
		FixedViewInfo info = new ExtendedListView(activity).info;
Connect your IDE to all the code out there  Get Codota for Java