Kotlin

With this blog post I am going to share with you how to create a ListView in Kotlin programmatically. ListView is a very commonly used UI component and knowing how to work with it enables you build even more powerful apps. The example below will cover: Create ListView in a ConstraintLayout Populate ListView with data using…

Read More Create ListView in Kotlin Programmatically

In this short code example in Kotlin I am going to share with you how to create an EditText programmatically and also how to: Add the created EditText in a ConstraintLayout Set hint text for the TextView Set text color Set EditText backgroundColor Layout XML file for the EditText UI component <?xml version=”1.0″ encoding=”utf-8″?> <android.support.constraint.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android”…

Read More Create EditText in Kotlin Programmatically

In this very short blog post I am going to share with you how to create and add Button in Kotlin programmatically. To break it down in more details the code example below will cover: Create Button programmatically in Kotlin Handle Button onClick events Change Button background color Change Button text color Add a Button…

Read More Create Button in Kotlin Programmatically

In this tutorial, we will use Kotlin to make a simple Android mobile app that will be able to receive push notifications sent from Firebase. I used to call these kind of messages “push messages” but the correct term for this tutorials will probably be a Firebase Cloud Messaging or the FCM which also stands for Firebase Cloud Messaging.  I…

Read More Push Notifications Example with Kotlin and Firebase