Code

Learn free code

How to create a MultiChoice AlertDialog in Android (Kotlin)

In this tutorial we will create a MultipleChoice AlertDialog using Android Studio. We will show list of colors to show in dialog. We will create a Button to show that AlertDialog, and a TextView to show the selected items… Step 1: Create a new project OR Open your project Step 2: Code activity_main.xml MainActivity.kt Step 3: Outpu

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

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

How to create Create AlertDialog With Custom Layout Programmatically (Java)? 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 Toast. You can also display this information anywhere such as TextView etc or save at some place.

Create AlertDialog With Custom Layout Programmatically Read More »