Android

Retain & restore recycler view scroll position

If you come to a situation where you need to retain the scroll position of a recycler view (i.e. configuration change, going back on a certain flow), you might think that you have a retain and restore the scroll manually. Yes, in …

Android / Development

Create a mapper easily

If you are used to implement clean architecture in your project you will know that the mappers are a very boring part to write. The mappers are needed to send data across boundaries and you need to be careful while …

Android

Playing with the new support TabLayout

Today I had to implement the new TabLayout from the support library and this is my Tips&Tricks to implement the tabs in a painless way.

The default tab indicator is so thin and can’t be appreciated it if the background is …

Android

Some fixes to the injectors

I made some fixes to the injectors to make the use more flexible than the first version.

The first improvement is in the output injector, when I created it, I don’t had in mind to have two in the same presenter …

Android / Architecture

New implementation of Interactor Invoker

The interactors are the part of the business logic that follows the command pattern, one example implementation in Java is, for example, the ThreadPoolExecutor and the Runnables. The ThreadPoolExecutor is the invoker that executes the runnable (command). When we are …

personal

Moving to London

Today I’m proud to announce that I’m leaving Spain to move to London and become part of the Moni’s team, an international transfer app. I’m moving to London looking for new adventures and improve my English level (as you can …

Android / Architecture

New weapons against the bus

Hi, today I gave a talk in Droidcon Spain about Clean architecture, quite similar to the Salamanca but with some fixes and improvements over this implementation. Now I don’t use a bus for this architecture anymore and I reduced the …

Mac

Creating an Online backup of my stuff

I often travel from Valencia to Madrid to stay some days to see my teammates at Selltag and I always carry my laptop to develop while commuting. I have a little SSD (128GB) on my laptop where I storage all …

Android / Architecture

Clean Android without bus

A lot of people are wondering why use a bus in my Clean Android implementation (Clean-Contacts repo on GitHub). And the reply is simple: I need to to get the reply of a previously launched interactor in a new instance …