Re: how to get view to alertdialog?

Liste des GroupesRevenir à cm android 
Sujet : Re: how to get view to alertdialog?
De : usenet (at) *nospam* arnowelzel.de (Arno Welzel)
Groupes : comp.mobile.android
Date : 27. Jun 2024, 15:21:58
Autres entêtes
Message-ID : <le5as4Fpe3nU1@mid.individual.net>
References : 1
Jakub, 2024-06-27 12:58:

I have this for sho alert Dialog
 
val adBuilder = AlertDialog.Builder(view.context)
 
 
         val alertDialog = adBuilder.setCancelable(false)
             .setView(R.layout.addnewwpos)
             .setNegativeButton("CANCEL") {
                     dialogInterface, _ -> dialogInterface.cancel()
                 ZUtils.hideKeyBoard(view, inputMethodManager)
                 MainActivity.showDialogAddPositionOpen = false
             }
             .setPositiveButton("OK", null)
             .create()
 
         alertDialog.show()
 
alertDialog.window?.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE)
 
how to get view to alertdialog?

There is no view. Dialogs are based on fragments. What is the goal you
want to achieve here?

--
Arno Welzel
https://arnowelzel.de


Date Sujet#  Auteur
27 Jun 24 * how to get view to alertdialog?2Jakub
27 Jun 24 `- Re: how to get view to alertdialog?1Arno Welzel

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal