Getting Started with Kotlin – Tutorial 4 – Functions

Compared to JAVA, Kotlin has a different syntax when writing functions. Lets take a look at an example and then break down every line to understand it.

In kotlin, to define a function you have to use the fun keyword. After the keyword comes the function name and then the Read more…


Getting Started with Kotlin – Tutorial 1 – Basic Syntax, Variables and Data Types

In the previous tutorial we saw the basic Hello World program written in Kotlin. Lets examine it more deeply.

Notice something weird? The main function is defined all by itself, its not inside a class, this is because Kotlin treats functions as first class citizens. “What does that means?” Read more…

Make a moving Gradient Background in Android

This is a quick tutorial on how to make a moving gradient background on Android. To achieve this all we need is AnimationList. Lets start! First we will create five gradient drawables in different files, as follows.

Now in a new xml drawable file add the Read more…