public FormationsWithNotesAdapter( FragmentActivity context, ExpandableListView parentView, SortedDictionary <string, List <string> > noteDictionary, List <string> filterList, ActivityCallBackListener listener, bool isDialog) { this.noteDictionary = noteDictionary; this.context = context; this.parentView = parentView; this.filterList = filterList; this.listener = listener; this.isDialog = isDialog; //Shame on me using flag, maybe own group layout for dialogfragment and use layout id as constructor parameter }
public override void OnAttach(Context context) { base.OnAttach(context); listener = (ActivityCallBackListener)context; }