RecyclerView Multi-Select using KOTLIN

Implementing multi-select on a Recycler View can be tricky and complicated. However, by the end of this tutorial, you’ll understand how to implement multi selection of items in a recycler view and do whatever you want (delete, share, copy etc) with the selected items . [box type=”info” align=”” class=”” width=””]Disclaimer I would like to mentally …

RecyclerView Multi-Select using KOTLIN Read More »

Background Processing in Android using Async Task Loader

AsyncTaskLoader is a subclass of Loader, unlike AsyncTask’s, AsyncTaskLoader prevent duplication of background threads and eliminate duplication of zombie (dead or destroyed) activities. First, let’s talk about Loaders. What are Loaders? The Loader API lets you load data from a content provider or any other data source for display in an FragmentActivity or Fragment – The concept of Loaders was …

Background Processing in Android using Async Task Loader Read More »

Background Processing in Android using AsyncTask

Background Processing In Android applications, there’s always at least one main thread that executes the most important tasks, handling user interaction, drawing pixels on the screen, and launching activities. This thread is called the UI Thread, or Main Thread. Because it’s handling the most crucial parts of an app, you never want to block the …

Background Processing in Android using AsyncTask Read More »

Kotlin Data Classes

In this tutorial we are going to discuss kotlin data classes, and show some examples on how you can use them in your app. We frequently create classes whose main purpose is to hold data. In such a case some standard functionality and utility functions are often mechanically derivable from the data.

Kotlin Function Overriding Rules

Overridden functions of an open class is open by default and we can stop that by using the final Keyword Meaning we can override and inherit overridden method by default. Let’s say we built a learning app. Course is our abstract class, KotlinCourse inherits or extends Course, SpecialKotlinCourse also inherits or extend KotlinCourse. As you can see from the code …

Kotlin Function Overriding Rules Read More »

Open & Abstract Classes and Inheritance in Kotlin

Kotlin: Open & Abstract Classes and Inheritance

In object-oriented programming, inheritance enables new objects to take on the properties of existing objects. We can have a class that can inherit properties and methods from the parent class when we inherit classes, we do not need to specify the method and properties again, in the new class (child class or subclass). In essence, it allows us to …

Kotlin: Open & Abstract Classes and Inheritance Read More »

Kotlin: Class Examples

Class without a Constructor but with default variable (or properties or data) [box type=”info” align=”” class=”” width=””]In class-based object-oriented programming, a constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.[/box] class Person { …

Kotlin: Class Examples Read More »