Kotlin

A series of complete step-by-step tutorials to walk you through how to accomplish different tasks in Kotlin, from Getting Started to writing Android applications

How to create a SingleChoice AlertDialog in Android (Kotlin)

In this tutorial we will create alert dialog with single choice from list of items. We will create a button that show alert dialog when that button is clicked, a TextView that shows the selected item from dialog. Step 1: Create a new project OR Open your project Step 2: Code activity_main.xml MainActivity.kt Step 3: Output SingleChoice AlertDialog […]

How to create a SingleChoice AlertDialog in Android (Kotlin) Read More »

Create AlertDialog With Custom Layout Programmatically (Kotlin)

How to create Create AlertDialog With Custom Layout Programmatically (Kotlin)? In this tutorial we will create AlertDialog with custom layout programmatically in Java using Android Studio IDE. We will create a button to show that AlertDialog and show output in a TextView. You can also display this information anywhere or save at some place like

Create AlertDialog With Custom Layout Programmatically (Kotlin) Read More »

AlertDialog with custom layout (Kotlin)

How to create Create AlertDialog With Custom Layout (Kotlin)?      DESCRIPTION      This tutorial will show how to create and show an AlertDialog with Custom Layout containing views such as EditTexts and Buttons etc. We will show AlertDialog on Button click. Custom layout will contain three EditTexts and two Buttons. When information is entered in EditTexts, Press Login Button, Dialog will be dismissed, and the information will be set to the TextView. Step 1: Create

AlertDialog with custom layout (Kotlin) Read More »