public override Dialog OnCreateDialog(Bundle savedInstanceState) { _fingerprintAuthenticator = new FingerprintAuthenticator(Activity, this); View v = Activity.LayoutInflater.Inflate(Resource.Layout.fingerprintdialog, null); _fingerprintStatus = v.FindViewById <TextView>(Resource.Id.fingerprint_status); _imgFingerprintStatus = v.FindViewById <ImageView>(Resource.Id.img_fingerprint_status); var dialog = new AlertDialog.Builder(Activity) .SetCancelable(false) .SetTitle("Sign in") .SetNegativeButton("Cancel", (sender, e) => Dismiss()) .SetView(v) .Create(); dialog.SetCanceledOnTouchOutside(false); return(dialog); }