A Complete Guide To Learn Kotlin For Android Development
A Complete Resources and Tutorials To Learn Kotlin For Android Development At One Place. We will provide all the topics with the resources to learn from which are important in Kotlin for Android Development. If you learn all the topics mentioned below, I am sure you will become better at using Kotlin in your Android App Development.
What is Kotlin?
Kotlin is a statically typed programming language for the JVM, Android and the browser which is now officially supported by Google For Android.
Now, let’s see all the best resources available to learn Kotlin in the best possible way for Android.
Earlier, I wrote this post on why to use Kotlin for Android Development. Now it’s time to revisit that post as Google has officially declared Kotlin as a first-class language for Android.
If you are interested in getting started with Kotlin with Video Tutorial, this video series is a good starting point.
If you already know Java, want to quickly get an overview of the syntax in Kotlin which is equivalent to Java.
In this tutorial, you will learn about the open keyword in Kotlin. You will get to know how and when to use the open keyword in Kotlin.
In this tutorial, we will learn about visibility modifiers in Kotlin. In Kotlin, we have four visibility modifiers i.e. private, protected, internal, and public. We have created a detailed tutorial on the same.
In this blog, we will learn how to work with interfaces in Kotlin. We will learn how to have default implementations and many more.
In this tutorial, we will learn the concept of labels and jumps in Kotlin. We will see the types of jump expressions that are used in Kotlin.
Learn about the ‘When’ in Kotlin
In this blog, we will learn about Init block in Kotlin.
In this tutorial, we will learn about forEach in Kotlin. We will compare it to For Loop and make you understand by an example
ktlint is a static code analysis tool that is used to analyze the Kotlin code for you.
In this tutorial, we will learn how to convert a Kotlin source file to a Java source file. We will do the file conversion by two methods. So, let's see how.
Learn the Property, Getter, and Setter in Kotlin
Learn about the safe calls, null checks in Kotlin to get the most out of it.
We will learn about constructors in Kotlin. We will cover Primary Constructors, init() block and Secondary Constructors.
Learn about the Pair and Triple in Kotlin
There are many great features available in Kotlin, we can take advantage of all these features to write a better application in Kotlin. Among all those features, lateinit and lazy are important property initialization feature. We must know when to use which property initialization.
We frequently create a class to do nothing but hold data. In such a class some standard functionality is often mechanically derivable from the data. In Kotlin, this is called a data class and is marked as data.
Destructuring is a convenient way of extracting multiple values from data stored in (possibly nested) objects and Arrays. It can be used in locations that receive data (such as the left-hand side of an assignment).
There are many great features available in Kotlin, we can take advantage of all these features to write a better application in Kotlin. Among all those features, apply and with are the important features. We must know when to use which one.
As the name implies, the extension functions are the functions that help us to extend the functionality of classes without having to touch their code.
This blog discusses the importance of sealed classes in comparison to enums and abstract classes. Let's learn it and use it in the correct way.
Learn about the Companion object in Kotlin
In this blog, we will learn how to create a singleton in Kotlin.
Learn about the JvmStatic, JvmOverloads and JvmField annotations.
This article is for anyone who is curious about the higher-order functions and lambdas in Kotlin but has no idea what they are exactly.
In this blog, we are going to learn the inline, noinline, and crossinline keywords in Kotlin. We will understand when to use the inline, when to use noinline and when to use the crossinline in Kotlin depending on our use-case. Most of the time, we do mistakes while using these keywords inline, noinline, and crossinline in Kotlin. Let’s understand it clearly to use it properly.
In this blog, we will understand the different Scoped functions that are used in Kotlin, what are the differences between each one of them and where to use these scoped functions correctly. let, run, with, also, apply.
This article is for anyone who is curious about the Kotlin Coroutines but has no idea what it is exactly. The goal is to make you understand what are Kotlin Coroutines which means that there are few simplifications done while writing the blog.
In this blog, we will learn about the function literals with receiver in kotlin.
In this blog, we are going to learn how to write Kotlin DSL in your Android project.
Jetpack was made to use the advantages of Kotlin language to make the developers more productive. So, in this blog, we will learn about the Android KTX. We will see how things have changed with the use of Android KTX.
In this blog, we will learn about various Design Patterns in Android that will make our code cleaner and easier to understand. We will learn about Creational, Structural, and Behavioural pattern in Android. So, let's master them and write the code in a better way.
In this article, we are going to learn how to write the unit-test for ViewModel with Kotlin Coroutines and LiveData that follows a basic MVVM Architecture. We will write the unit-test for the ViewModel which makes a network call and then, validate if our ViewModel is working as expected or not.
In this tutorial, we are going to learn how to make the multiple network calls in parallel using Kotlin Coroutines. This tutorial will also help you in doing any type of background tasks in parallel using Kotlin Coroutines.
In this blog, we will learn about how to handle exceptions in Kotlin Coroutines.
In this tutorial, we are going to learn how to use Room Database with Kotlin Coroutines. We will learn to write the code inside the ViewModel with Kotlin Coroutines that follows a basic MVVM Architecture.
In this blog, we are going to learn about the withContext and Async-await in Kotlin. We will also see how the withContext and Async-await differ from each other and when to use which one.
In this blog, we are going to learn about the suspend function in Kotlin Coroutines. Suspend function is the building block of the Coroutines in Kotlin. It is important to learn about the suspend function. We will deep dive into the source code of Kotlin to understand it today.
In this blog, we are going to learn about Reified Types that are used in Kotlin. We will learn it by example.
With great power, comes great responsibility. So learn it in the best way.
Happy Coding :)