A subclass of Dialog that can display one, two or three buttons. If you only want to display a String in this dialog box, use the setMessage() method. Most frequently using part is creating alert dialog box during application development. Here we are going to develop alert dialog using kotlin.
Here is simle kotlin code:
and output looks like:
I hope you are enjoying simple code than java for making alert dialog box with take and give inputs.
full code: https://goo.gl/rJLyc7
#HappyCoding #ILoveKotlin #PrAndroid