Juan MengualinadidoescodeThe ViewModel’s leaked Flow collectors problemI love Kotlin Flow, specially when used to chain the data from your data layer (or use cases if you got them) to your Ui. When done right…6 min read·Dec 15, 2023--14--14
Juan MengualinadidoescodeAndroid Quick Recipes: Execute your UseCases automatically when the users logs in/out with FlowDoes you app have a login? Then I bet that you have a conditional logic that has to be executed when the users logs in or maybe when the…8 min read·Oct 2, 2022----
Juan MengualinandroidxxAndroid quick recipes: observe when your user has logged in from the deep down of the…A pretty common requirement in almost any app is to have some screen which need to change if the user found that your features (well… the…4 min read·Jul 13, 2022----
Juan MengualinadidoescodeAndroid arch exploration: Compose navigation but ViewModel dictates where to goRecently we had to go back to one of the oldest (and darkest) parts of our codebase, the login, and make Single Sign On happen. Our login…17 min read·May 27, 2022----
Juan MengualinadidoescodeAndroid arch exploration: MVVM + flow + UseCases with a UI gate (combine use case’s output to…Looking for an architecture which can work fine for simple to medium features based in MVVM, Clean architecture and unidirectional flow of…8 min read·Jul 11, 2021--6--6
Juan MengualinandroidxxAdd a custom badge to your bottom tabs, because sometimes you need a square instead of a circleBottom Navigation Bar is probably one of the most common navigation patterns around and the view at Material components is an incredible…3 min read·Mar 23, 2021--1--1
Juan MengualinandroidxxSay hi to the bounce effect in RecyclerView without headachesPixel launcher added sometime ago this very nice effect to the app drawer which replaces our beloved android over scroll effect with the…4 min read·Feb 14, 2021--2--2
Juan MengualinandroidxxAn approach to a multi module app with Navigation Component and fragment Result APII usually work in a very big app which has been some years around. We have refactored some of the features several times and we have done…5 min read·Nov 19, 2020----
Juan MengualinandroidxxPropagate data and state using MediatorLiveDataLiveData is a great way to send your data updates to the UI, but as commented in the Guide to app architecture in the final lines, dealing…2 min read·Jul 15, 2018----
Juan MengualinandroidxxMy very own Droidcon Italy 18 recapHolded in my beloved city Turin, Droidcon Italy just finished last Friday and, since I’m preparing some quick notes to present to my…6 min read·Apr 23, 2018----