Kotlin Tutorial Crash Course -
Kotlin Tutorial Crash Course
by on on kotlin

Kotlin Tutorial Crash Course

Kotlin Real Estate app.

Kotlin is an android development language as well as IOS which supports cross platform, server side, native, web development and much more.

This tutorial will help you learn how to use Kotlin and design a beautiful android(but not limited to android) interactive application using Kotlin. This tutorial focuses on building a service/rental application using Kotlin.

Before you begin this tutorial follow this steps to setup your windows machine to run android studio android emulator properly.

Check out this video to see how to setup android studio on How to setup Android Studio

Step One: Download Android studio
Step Two: Install android studio and get your SDK PATH from tools

example:

C:\Users\boltskills\AppData\Local\Android\Sdk

Step Three: Open your Environment variables and under system variables, create a System variable with ANDROID_HOME  and under destination, place your SDK path.

Step Four: Download Java and install and copy the path (C:\Program Files\Java\jdk-14.0.2) also and create a System Variable called JAVA_HOME and place the it inside of the destination.

Step Five: Add those lines of code to your PATH under system variables


%ANDROID_HOME%\platform
%ANDROID_HOME%\tools
%ANDROID_HOME%\toos\bin
%JAVA_HOME%\bin

After the above procedures, open your Android Studio Create a new project and select android, but change the language to Kotlin.




Then click okay and allow everything to build.

Go to activity_main.xml file and add this lines of code.


<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <include layout="@layout/home" android:background="#F6F6F6"/>
</androidx.constraintlayout.widget.ConstraintLayout>

then create a layout resource file called home and add this lines of code

https://github.com/samdsg/Kotlin_Home/blob/master/kotlinrental/app/src/main/res/layout/home.xml

Now finally run your application. Here below is the app which were going to build after you are done setting up your machine for Kotlin and android studio.




You can download the full source code from here.