Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Go to a movie tonight. Darkness becomes you.


comp / comp.mobile.android / Re: how to get view to alertdialog?

SubjectAuthor
* how to get view to alertdialog?Jakub
`- Re: how to get view to alertdialog?Arno Welzel

1
Subject: how to get view to alertdialog?
From: Jakub
Newsgroups: comp.mobile.android
Organization: http://www.wit.edu.pl
Date: Thu, 27 Jun 2024 10:58 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.chmurka.net!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.public-gprs410958.centertel.pl!not-for-mail
From: jak74@interia.pl (Jakub)
Newsgroups: comp.mobile.android
Subject: how to get view to alertdialog?
Date: Thu, 27 Jun 2024 12:58:21 +0200
Organization: http://www.wit.edu.pl
Message-ID: <v5jgio$3esc5$1@portraits.wsisiz.edu.pl>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jun 2024 10:57:29 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="public-gprs410958.centertel.pl:37.47.236.143";
logging-data="3633541"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla Thunderbird
Content-Language: pl
View all headers

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?

Subject: Re: how to get view to alertdialog?
From: Arno Welzel
Newsgroups: comp.mobile.android
Date: Thu, 27 Jun 2024 14:21 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
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>
View all headers

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

1

rocksolid light 0.9.8
clearnet tor