Android GridLayoutManager Example With RecyclerView

This article is about Android GridLayoutManager and how to use it with RecyclerView to show items in uniform grid with the help of simple android application. GridLayoutManager The RecyclerView widget is a more advanced and flexible version of ListView. It is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited […]

Android GridLayoutManager Example With RecyclerView Read More »

Java Access Modifiers

This post is about Access/Visibility modifiers in Java and how to use them. Access Modifiers In Java, access modifiers are used to set the accessibility (visibility) of classes, constructors, data members and methods in another classes.  There are four types of access modifiers available in java: Default : visible only within the package. Private: visible

Java Access Modifiers Read More »

Android AlertDialog Example

This article is about Android AlertDialog and how to use it in android application with simple examples. AlertDialog AlertDialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for events that require users to take an action

Android AlertDialog Example Read More »

Java Interfaces(with Examples)

This article is about interfaces and how to implement it in Java with the help of examples. Interface An interface in java is a collection of fields and abstract methods (only method signature, no body). Interfaces are by default prefix with abstract keyword, which means similar to abstract classes we cannot create an object of

Java Interfaces(with Examples) Read More »

Android Notification Example

This post is about android notification, how to create a simple notification, notification styles, how to add actions in notifications with the help of simple android application. Notification A Notifications provide short, timely information about events happened in the application, even if the application is not running. Creating a Basic Notification A notification in its

Android Notification Example Read More »

Android Snackbar(Java/Kotlin)

This article is about Android Snackbar and how to use it in android application with simple examples in Java and Kotlin. Snackbar Snackbar is an Android Material Design component . It provide lightweight response about an operation by showing a short message at the bottom of the screen on mobile and lower left on larger

Android Snackbar(Java/Kotlin) Read More »

Android Toast(Java/Kotlin)

This article is about Android Toast and how to use it in android application with simple examples using Java and Kotlin. Toast A toast provides simple feedback about an operation in a small popup.  By default it appears near the bottom of the screen, centered horizontally. Toasts are not clickable and automatically disappear after a

Android Toast(Java/Kotlin) Read More »

Java Abstract Class and Abstract Methods

In this tutorial, we will learn about Java abstract classes and methods and how to use them in our program with the help of examples. Abstract Class An abstract class is a class that cannot be instantiated (we cannot create objects of an abstract class). Syntax We use the abstract keyword to declare an abstract class.

Java Abstract Class and Abstract Methods Read More »

Kotlin Constructor in Inheritance

In this article, you will learn about Constructors (both primary and secondary constructor) behavior in Inheritance, in Kotlin with the help of examples. A constructor for a class is a special member function, which is called implicitly, just after the memory is allocated for the object to initialize the properties of the newly created object

Kotlin Constructor in Inheritance Read More »

Kotlin Inheritance

In this tutorial, we will learn about Inheritance in Kotlin with the help of examples. Inheritance Inheritance is one of the key feature of OOP (Object Oriented Programming). Inheritance can be defined as the process where one class is allowed to inherit the features (properties and functions) of another class. The class which inherits the features of other

Kotlin Inheritance Read More »