

MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(Activity) īuilder.SetTitle(Arguments.GetString("Title")) īuilder.SetPositiveButton(, (sender, args) => ) TextViewExplanation.Text = Arguments.GetString("Message") TextView textViewExplanation = view.FindViewById(Resource.Id.textView_explanation) View view = inflater.Inflate(_dialog, null) LayoutInflater inflater = LayoutInflater.From(Activity) Public override Dialog OnCreateDialog(Bundle savedInstanceState) I’m using a MaterialAlertDialogBuilder and in the OnCreateDialog. The layout is a ScrollView containing a LinearLayout containing one Textview for the message, which can be of any length. An instance of it takes 2 strings, a title and a message. The simplest one of these dialogs is what I call BasicDialogFragment. I’ve only recently converted my app to Android 12 and the only relevant change I had to make was to include permissions for BluetoothConnect and BluetoothScan because of the new Android 12 permission requirements.

On any devices lower than Android 12, they display normally as they have done, since Android 10, when I first converted to AndroidX. Some are more complicated than others and so have their own classes, but they now appear to have a problem in displaying correctly on Android 12 devices only. I have many modal Dialogs in my app, which are all based on AppCompatDialogFragment. Classic Xamarin.Android (MonoAndroid11.0, MonoAndroid12.0, etc.) Affected platform version
