Deutsch English Français Italiano |
<v5jgio$3esc5$1@portraits.wsisiz.edu.pl> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.public-gprs410958.centertel.pl!not-for-mail From: Jakub <jak74@interia.pl> 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 Bytes: 1446 Lines: 19 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?