Deutsch   English   Français   Italiano  
<le5as4Fpe3nU1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!npeer.as286.net!npeer-ng0.as286.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Arno Welzel <usenet@arnowelzel.de>
Newsgroups: comp.mobile.android
Subject: Re: how to get view to alertdialog?
Date: Thu, 27 Jun 2024 16:21:58 +0200
Lines: 30
Message-ID: <le5as4Fpe3nU1@mid.individual.net>
References: <v5jgio$3esc5$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net U6k3++WUgaeY3yqAxFs7mwPC/H22BfZseI8RstFFHW712QX+oG
Cancel-Lock: sha1:b1Vym1SmB3ggyLRArjlhL2LhGKo= sha256:q4PYNv/KhJz12akrSiUEWPRqP2lTy2aw0BA054taMWc=
Content-Language: de-DE
In-Reply-To: <v5jgio$3esc5$1@portraits.wsisiz.edu.pl>
Bytes: 1649

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