With Anko, I can write something like this to show a dialog:
alert("Dialog title") { yesButton {} noButton {} }.show()
How can I set the title for a button?
noButton {title = "title"}
does not work.
You can use positiveButtonit negativeButtonlike this:
positiveButton
negativeButton
alert("Dialog title") { positiveButton("Yes") { dismiss() } negativeButton("No") { dismiss() } }.show()
Source: https://habr.com/ru/post/1669008/More articles:apollo graphql подписка на рельсы + actioncable + redis pubsub - ruby-on-railsPermutations supporting the order of some elements - pythonhow it works @BindsInstance dagger 2 - daggeriOS: UITableView inside UITableViewCell with dynamic cell height - iosHow to pass a variable in the background "Given" in a cucumber? - javaGoogle Cloud Speech in Node.JS: config speech_context - node.jswhy can't jquery.animate () use $ (this)? - jqueryHow to set Windows position at startup - c #.net core - Jwt middleware authentication key is ignored - c #Creating stable `getfield` call types using generated functions - julia-langAll Articles