|
@@ -184,6 +184,7 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
|
|
boolean adapterProvided = adapter != null;
|
|
boolean adapterProvided = adapter != null;
|
|
if (items != null && items.length > 0 || adapterProvided) {
|
|
if (items != null && items.length > 0 || adapterProvided) {
|
|
title = (TextView) view.findViewById(R.id.titleCustomView);
|
|
title = (TextView) view.findViewById(R.id.titleCustomView);
|
|
|
|
+ icon = (ImageView) view.findViewById(R.id.iconCustomView);
|
|
listView = (ListView) view.findViewById(R.id.contentListView);
|
|
listView = (ListView) view.findViewById(R.id.contentListView);
|
|
listView.setSelector(DialogUtils.resolveDrawable(getContext(), R.attr.md_selector));
|
|
listView.setSelector(DialogUtils.resolveDrawable(getContext(), R.attr.md_selector));
|
|
((MeasureCallbackListView) listView).setCallback(this);
|
|
((MeasureCallbackListView) listView).setCallback(this);
|