Hey Readers, I hope you all are fine. So today we are going to learn about how to create MaterialAlertDialogBuilder in kotlin are you ready to learn🤔.

Let’s get Started :

Step 1: Add Dependency to build.Gradle

// Material Dialogs
implementation "com.afollestad.material-dialogs:core:3.0.0-rc1
// Material theme
implementation "com.google.android.material:material:1.4.0-rc01"

Step 2: So first of all in XML, we are going to create FloatingAction Button you can take any button and it depends totally upon the user. Here we are taking a floatingActionButton.In fragment_home.xml Please write the below code.

<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_ofdialog"
android:layout_width="55dp"
android:layout_height="55dp"…


Photo by Caspar Camille Rubin on Unsplash

My journey started when I took admission in Computer Science Engineering (Cloud-Based Applications). After taking admission in CSE(CBA), I was not serious about my career. I don’t like computer stuff and I don’t know anything about the computer although I’m good at watching movies and playing games on them 😁. While taking admission in CSE I thought that college professors will teach us about how to build software and so I was very excited. I wanted to become a software developer but I didn’t know what actually a software does, why we need software.

Frankly speaking, it seems cool to…


Photo by Suika Ibuki on Unsplash

In this tutorial, we will learn how to use Intent and then we will pass the data using Intent from one activity to another.

What is Intent??

Through Intent we can move from one activity to another activity and Intent can also be used to pass the data from one activity to another activity.

In the previous article, we designed the Login Page and now we will learn how to use Intent to pass data from LoginActivity to the next activity.

Step 1:

First of all, we have to link the views of activity_login.xml with LoginActivity In activity_login.xml, we have…


Photo by Dmitry Bayer on Unsplash

In this tutorial, you will learn how to create a simple Login UI in Android. This is my first blog post on Android development and hence suggestions and feedback are always welcomed.

Step: 1
In order to user the new material design by Google, we need to add the material dependency to the app level build.gradle file.


implementation ‘com.google.android.material:material:1.0.0’

Step: 2

Create a new file name LoginActivity as shown below.

Bhavya Varmora

Android developer in kotlin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store