Open yasmanmesa opened 7 years ago
In previous versions of DecleX the view of the $AlertDialog() was established using the builder(), so it looked more like this:
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Click void btnConfigServer(){ $AlertDialog().title(getString(R.string.app_name)).positiveButton("Aceptar").negativeButton("Cancelar").builder().setView(R.layout.dialog_server); if ($AlertDialog.Dismissed){ $PutModel(config); } }
In this example you should put @TargetApi (Build.VERSION_CODES.LOLLIPOP) 'cause this call requires API 21.
Currently you can set the view of $AlertDialog using the view method but it returns this error:
java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setView
Thanks for reporting
In previous versions of DecleX the view of the $AlertDialog() was established using the builder(), so it looked more like this:
In this example you should put @TargetApi (Build.VERSION_CODES.LOLLIPOP) 'cause this call requires API 21.
Currently you can set the view of $AlertDialog using the view method but it returns this error: