Items in dialog don't receive click event when I set adapter

CyberNyantaCyberNyanta ✭✭UAMember ✭✭

When I set custom adapter, EventHandler or IDialogInterfaceOnClickListener doesn't receive event;
In code below dialog.Dismiss(); didn't call on item click

AlertDialog dialog = null; AlertDialog.Builder alert = new AlertDialog.Builder(this); dialog = alert.SetAdapter(new ColorListAdapter(this, colorList), (obj, args)=> { dialog.Dismiss(); }) .Show();

Sign In or Register to comment.