kotlin

More about functions in Kotlin

With Kotlin you can do much more with functions as compared to JAVA. Lets explore some of the features related to functions offered by Kotlin. If you are completely new to functions in Kotlin, then please read this: Getting Started with Kotlin – Tutorial 4 – Functions Local Functions In Read more…

fonts

Using Fonts in Android

Android has supported setting custom fonts from a long time, but it has always missed out on one feature, setting fonts in xml. It has only allowed using fonts programmatically. Android team has finally resolved this pitfall in Support Library 26. Now you can use fonts in xml, just like any Read more…

kotlin

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…