Tag: Jetpack

Input Validation With Clean Architecture In Jetpack Compose

Input validation is an essential aspect of app development as it helps to prevent unexpected user input, data corruption, and security vulnerabilities. With the increasing popularity of Jetpack Compose in Android development, it is important to understand how input validation fits into the Clean Arc...

Screen Transition Animations with Jetpack Navigation

I’ve recently delved into how to add support for navigation in Android using Jetpack Compose. To do so, I created a small app that consumes an API and has a Main -> Detail screen. In this post, we’ll go through the basic setup of the project, its key elements to handle navigation, and...

Life Cycle In Jetpack Compose

In Android, the life cycle refers to the series of states that an application component, such as an Activity or Fragment, goes through during its lifespan. Each component has a set of life cycle methods that are called by the Android system at different stages, allowing developers to execute code an...

Picking Images From Gallery Using Jetpack Compose

Grab a cup of coffee  and let’s see how to pick images from the gallery using Jetpack Compose. Setup We need to use a dependency called Coil in order to display the images. To add it just open :app/build.gradle.kts and paste this into the dependencies block. ...

WebView in Jetpack Compose

A WebView in a native app is a view component that allows you to display web content, seamlessly enhancing your Android applications with web functionality. They are relatively easy to use. Let’s build an Android app that integrates the Longman Dictionary using a WebView. Now, what do we ne...

Jetpack Compose ??? Drawing custom shapes (Circle, Rect, Paths)

Before starting, it’s good to have a grid notebook, something you can just use pen and paper and draw what you want to draw there first. The 0,0 is always in the top left corner. It’s basicly the reverse coordinate system. In a grid of 100x100, the bottom right corner is 100,100. All the...

Android Jetpack Compose: CompositionLocal Made Easy

InJetpack Compose, we commonly heard about Recomposition and Remember, the two important concepts to grasps how one can work with Jetpack Compose. Android Jetpack Compose: Recompositiom Made Easy Android Jetpack Compose: Remember Made Easy However, when we check out the&n...