Android

In this short Kotlin code example we will learn how to create a single CardView in Kotlin programmatically. CardView is a FrameLayout with a rounded corner background and shadow. You can add multiple views into a CardView and then show them in a list one under another.  We will make a quotation card containing quote and…

Read More Create CardView in Kotlin Programmatically

Below is a very short tutorial on how to create RecyclerView in Kotlin programmatically. RecyclerView is a flexible view for providing a limited window into a large data set and learning how to create and use it make you even better Mobile App Developer :). The Kotlin code example below will cover: Create RecyclerView Create RecyclerAdapter Create a…

Read More Create RecyclerView in Kotlin Programmatically

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

Heads up guys! Google has just launched a new certification program for mobile web developers. The complete name of certification exam is Mobile Web Specialist Certification and if you have been building mobile web apps then this is your chance to show off your skills and become Google Certified Mobile Web Specialist :). Those who…

Read More A new certification program from Google for mobile web developers

To enable or disable android app from being backed up or restored you can use AndroidManifest.xml file and android:allowBackup=”false” which if present and is set to false will prevent even a full-system backup that would otherwise cause all application data to be saved via adb. The default value of this attribute is true.  For example: <?xml version=’1.0’…

Read More android:allowBackup – Enable or Disable Android App Backups