1

Xamarin/Mono for Android - AlertDialog - gap between custom content view and title/buttons

view story
linux-howto

http://stackoverflow.com – I use a custom view for the alert dialog but there is a gap about 5dp between the title and the custom view, and also a gap between the custom view and the buttons. AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context) .SetTitle("Title") .SetView(Inflater.Inflate(Resource.Layout.myAlertDialog, null)) .SetCancelable(true) .SetPositiveButton(Resource.String.dialog_ok, OkClicked) .SetNegativeButton(Resource.String.dialog_cancel, CancelClicked); _alertDialog = alertDialogBuilder.Create(); _alertDialog.Show(); Th (HowTos)