Open in app

Sign In

Write

Sign In

Juan Mengual
Juan Mengual

135 Followers

Home

About

Published in adidoescode

·Oct 2, 2022

Android Quick Recipes: Execute your UseCases automatically when the users logs in/out with Flow

Does 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 user logs out or probably both. …

Android

8 min read

Android Quick Recipes: Execute your UseCases automatically when the users logs in/out with Flow
Android Quick Recipes: Execute your UseCases automatically when the users logs in/out with Flow
Android

8 min read


Published in androidxx

·Jul 13, 2022

Android quick recipes: observe when your user has logged in from the deep down of the AccountManager

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 apps) are worth login in. But, funny thing, your login might be triggered from one screen and you might want to react to it…

Android

4 min read

Android quick recipes: observe when your user has logged in from the deep down of the…
Android quick recipes: observe when your user has logged in from the deep down of the…
Android

4 min read


Published in adidoescode

·May 27, 2022

Android arch exploration: Compose navigation but ViewModel dictates where to go

Recently 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 had a few design mistakes from the start (Oh man, we have learned a lot during the years) and tons of devs have…

Android

17 min read

Android arch exploration: Compose navigation but ViewModel dictates where to go
Android arch exploration: Compose navigation but ViewModel dictates where to go
Android

17 min read


Published in adidoescode

·Jul 11, 2021

Android arch exploration: MVVM + flow + UseCases with a UI gate (combine use case’s output to generate the UI)

Looking for an architecture which can work fine for simple to medium features based in MVVM, Clean architecture and unidirectional flow of information. We’ve started a phase of experimentation in the team to update the architecture approach that we use for most of the features. We are currently in MVVM…

Android

8 min read

Android arch exploration: MVVM + flow + UseCases with a UI gate (combine use case’s output to…
Android arch exploration: MVVM + flow + UseCases with a UI gate (combine use case’s output to…
Android

8 min read


Published in androidxx

·Mar 23, 2021

Add a custom badge to your BottomNavigationView tabs, because sometimes you need a square instead of a circle

Bottom Navigation Bar is probably one of the most common navigation patterns around and the view at Material components is an incredible one. It has lot of customisation options, but badges has always to be a circle. If circles does not match your app’s brand identity or you just want…

Android

3 min read

Add a custom badge to your bottom tabs, because sometimes you need a square instead of a circle
Add a custom badge to your bottom tabs, because sometimes you need a square instead of a circle
Android

3 min read


Published in androidxx

·Feb 14, 2021

Say hi to the bounce effect in RecyclerView without headaches

Pixel launcher added sometime ago this very nice effect to the app drawer which replaces our beloved android over scroll effect with the items moving and bouncing when the scrollable content finishes. It has been a typical iOS detail in the past and probably a few years ago I would…

Android

4 min read

Say hi to the bounce effect in RecyclerView without headaches
Say hi to the bounce effect in RecyclerView without headaches
Android

4 min read


Published in androidxx

·Nov 19, 2020

An approach to a multi module app with Navigation Component and fragment Result API

I 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 a huge effort in modularisation in the last years, but app navigation is one of the big pending topics (and pain points) we…

5 min read

An approach to a multi module app with Navigation Component and fragment Result API
An approach to a multi module app with Navigation Component and fragment Result API

5 min read


Published in androidxx

·Jul 15, 2018

Propagate data and state using MediatorLiveData

LiveData 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 with loading state and handling errors are not trivial. Consider de following scenario: when opening your activity, you want to display the list…

Android

2 min read

Propagate data and state using MediatorLiveData
Propagate data and state using MediatorLiveData
Android

2 min read


Published in androidxx

·Apr 23, 2018

My very own Droidcon Italy 18 recap

Holded in my beloved city Turin, Droidcon Italy just finished last Friday and, since I’m preparing some quick notes to present to my colleagues at work I though It would be great to share them here too. First of all, thanks to all the guys which organised it, the old…

Android

6 min read

My very own Droidcon Italy 18 recap
My very own Droidcon Italy 18 recap
Android

6 min read


Published in androidxx

·Mar 31, 2018

An sticky button with CoordinatorLayout Behaviors

Our UX team came up with a really great design for a product detail page starring a “buy button” which is placed in some position of the vertical scrollable content. Better check the image below.

Android

4 min read

An sticky button with CoordinatorLayout Behaviors
An sticky button with CoordinatorLayout Behaviors
Android

4 min read

Juan Mengual

Juan Mengual

135 Followers

Android dev @ adidas ///

Following
  • Maxi Rosson

    Maxi Rosson

  • Manuel Vivo

    Manuel Vivo

  • Julia Santos Moura

    Julia Santos Moura

  • Max Kachinkin

    Max Kachinkin

  • Phillip Kigenyi

    Phillip Kigenyi

See all (33)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech