Member-only story
Easiest way to code Navigation Drawer In Kotlin Android !
Kotlin is a cross-platform, statically typed, general-purpose programming language with type inference. Kotlin is designed to interoperate fully with Java, and the JVM version of its standard library depends on the Java Class Library
Also it is the official language for android.
In this post, we will make a navigation drawer in android. The navigation drawer is a panel that slides out from the left of the screen and contains a range of options available for selection by the user, typically intended to facilitate navigation to some other part of the application.
Here is an Example.
Navigation Drawer in Kotlin Android CODE
STEP 0
Create a New Android Project with Kotlin support.
STEP 1
We need to change our style because we have to implement our own toolbar. Add the below style open your styles.xml file and add this 1 new style. You can find styles.xml in- app => res => values => styles.xml
STEP 2
To make navigation Drawer we don’t need any dependency but to make it look beautiful we will use Material UI dependency.
//Add in Build.gradle(app) //Change dependency…