Understanding Resource Selection in AndroidApps with Multiple Modules
ProAndroidDev
by Sourabh kaushik: Android/POS Developer
23h ago
Introduction: In Android app development, creating an intuitive and visually appealing user interface is crucial. Activities, representing individual screens, rely on XML layout files to define the structure of their user interfaces. However, when an app employs multiple modules, these multiple modules can have layouts sharing same name, it’s essential to understand how Android determines which layout to access. In this blog post, we will explore the underlying process that dictates layout selection and shed light on how Android makes these decisions. Resource Resolution Process: When an Andro ..read more
Visit website
Deep-dive into derivedStateOf and comparison with remember(key)
ProAndroidDev
by Saqib
3d ago
derivedStateOf helps to avoid unnecessary recompositions to achieve better performance. In the story we will deep-dive into derivedStateOf API and will see how it is different from remember(key) . We will see When/How we should use derivedStateOf . We will further see comparison between remember(key) and derivedStateOf and in the end we will look into some Applications of derivedStateOf . We will answer some questions to understand derivedStateOf API, the list of such questions is below. Page Content When derivedStateOf API be used? Why should we use remember with de ..read more
Visit website
Gradle Kotlin convention plugins for modularized structure — Shared build logic
ProAndroidDev
by Umut TEKE
5d ago
Gradle Kotlin convention plugins for modularized structure — Shared build logic Image from Jetbrains blog article Many of us have faced Groovy difficulties and used to convert it to Kotlin DSL. Then, as Android engineers, working on a project entirely written in Kotlin is pure joy. We assume going on a feature-based modularized app structure applying the version catalog feature. We would adequately manage the build logic to make it centralized and reusable by the modules. Here are the steps to facilitate your Gradle build configurations into a centralized build logic by creating ..read more
Visit website
Dart 3.0: Revolutionizing Development with Cutting-Edge Features
ProAndroidDev
by Radheshyam Singh
5d ago
Get ready to embark on an exciting journey into the future of development as Dart 3.0 emerges, bringing with it a wealth of cutting-edge features that are set to revolutionize the way we build applications. But before we dive into that, let’s take a quick look at the core features of Flutter: Beautiful: Flutter allows you to create visually stunning user interfaces with its rich set of customizable widgets and powerful design capabilities. Fast: Flutter’s reactive framework and optimized rendering engine enable high-performance applications that run smoothly and respond quickly to user ..read more
Visit website
Achieving Platform-Specific Implementations with Koin in KMM
ProAndroidDev
by Mirzamehdi Karimov
6d ago
During the migration process of the Quotes project to KMM (Kotlin Mobile Multiplatform), I had to implement different classes for each platform, and I was using Koin for dependency injection. One of such classes was NetworkHandler, which had a single method called hasNetworkConnection() that was checking network connectivity, and I needed to implement this class on both Android and iOS platforms. The way of doing this in multiplatform development, we declare something as expected and then provide the actual implementation for each platform( https://kotlinlang.org/docs/multiplatform-connect-to ..read more
Visit website
How to architect Android apps: a deep dive into principles, not rules
ProAndroidDev
by Tom Colvin
1w ago
Photo by Josue Isai Ramos Figueroa Here’s a scenario that’s recognisable to most Android developers… You are tasked with adding a simple feature to an app, but doing so forces a change in another area, and then another and another, until the footprint of your change becomes so unwieldy it’s impossible to test. You’ve probably also worked on apps where making a change in a hacky way is significantly easier than figuring out how to do something properly. Or apps where a change in one part of the app causes hundreds of totally unrelated bugs to pop out of the woodwork. These are all the ..read more
Visit website
Color Picker in Compose
ProAndroidDev
by Abhilash
1w ago
For my first article in medium, I would like to start by showing you how to create a color picker in pure compose. Photo by Frans van Heerden on Pexels Usually color pickers will have 3 components, Hue — The color of the picker Saturation — The intensity of the color Value — The lightness of the color We are going to have 2 panels. One will contain the hue selector and other panel will have both saturation and value in it. First we will start by having hue panel. The output should look something like this. (Since it would not look nice to have to write andr ..read more
Visit website
Creating Touch Held Down Modifier with Jetpack Compose | by Altuğ Keçiciler | May, 2023 | ProAndroidDev
ProAndroidDev
by Altuğ Keçiciler
1w ago
Nearly three years have passed since I penned an article on implementing touch hold callbacks in Android, using the old view system. However, the advent of Jetpack Compose has revolutionized how we handle touch events in our apps. This new article will explore the latest approach to achieving the same functionality using Jetpack Compose to create a touch held down Modifier and improve the user experience of your Android app. We won’t be getting into the touch handling in Compose today. But don’t panic! Check out a droidcon post for a deep dive, and if you’re still lost, the Android Devel ..read more
Visit website
Jetpack Compose Tutorial: Animated Navigation Bar
ProAndroidDev
by exyte
1w ago
How to implement a navigation bar with smooth custom animations At Exyte we like to challenge ourselves and implement complex design animations when we come across something we really like. Sometimes it becomes an article in our replicating series, and sometimes it ends up as a library. This time we found a great design by Yeasin Arafat @dribbble, and decided to replicate it for both iOS and Android to compare the ease of implementation in SwiftUI and Jetpack Compose. As usual, here’s an accompanying article on how we did it, this one for Jetpack Compose. The main idea is to create an an ..read more
Visit website
Code Coverage percentage comparison in your PRs
ProAndroidDev
by Fernando Prieto
1w ago
Photo by Fernando Reyes on Unsplash Have you ever imagined being able to get some details about how much your latest pull request increased or decreased the total code coverage in the project that you are working on? Now this possible using Bitrise, Github and a couple of scripts. Let’s get stuck into it ?? Pre-requisites A Jacoco plugin to generate code coverage from your unit tests. As example, I will mention some gradle tasks that Android-Root-Coverage-Plugin offers. This SDK allows the use of a multi-module project and get either an overall or an individual module coverage ..read more
Visit website

Follow ProAndroidDev on Feedspot

Continue with Google
Continue with Apple
OR