Open in app

Sign In

Write

Sign In

Patxi Bocos
Patxi Bocos

148 Followers

Home

About

Apr 21, 2021

Jetpack Compose: building a generic grid canvas

As promised in my last article, here I am back again with the grid canvas we used to replicate IntelliJ IDEA’s splash screen. This time I will be explaining how to implement some additional features. Content alignment We want our composable to have the ability to set where the cells will be…

Android

4 min read

Jetpack Compose: building a generic grid canvas
Jetpack Compose: building a generic grid canvas
Android

4 min read


Apr 14, 2021

Mimicking IntelliJ IDEA’s splash screen with Jetpack Compose

The latest version of IntelliJ IDEA (2021.1 at the time of this publication) has a cool splash screen based on a grid containing different coloured shapes like this below: The goal of this post is to implement a Jetpack Compose composable that mimics this pattern. As we can see the…

Android

4 min read

Mimicking IntelliJ IDEA’s splash screen with Jetpack Compose
Mimicking IntelliJ IDEA’s splash screen with Jetpack Compose
Android

4 min read


Mar 8, 2021

Remembering the State in Jetpack Compose

When starting to work with Jetpack Compose (now that it is in beta 🎉) and stateful components, we easily get used to define values based on a mutable state which are also remembered. But there are two independent concepts when we write a line of code like below: var clicks…

Android

3 min read

Remembering the State in Jetpack Compose
Remembering the State in Jetpack Compose
Android

3 min read


May 20, 2020

Road to Android UI tests

Writing stable and reliable UI tests is neither easy nor trivial. There are multiple factors applications depend on that UI developers can’t control. Network is a very common external dependency that can produce test instability. …

Android

6 min read

Road to Android UI tests
Road to Android UI tests
Android

6 min read


Published in

ITNEXT

·Apr 26, 2020

Sealed classes + RecyclerView with headers = ❤️

If you have been in the Android ecosystem for a while, there is a chance that at some point you needed to show a list of items on the screen grouped by a given criteria in the form of a header. Something like:

Android

3 min read

Sealed classes + RecyclerView with headers = ❤️
Sealed classes + RecyclerView with headers = ❤️
Android

3 min read


Apr 12, 2020

Announcing poetimizely library 📢

After spending the last weeks working on a library, today, I am happy to announce the first beta release of poetimizely. (Thanks to Ralph who is contributing to the project 🙂). What is poetimizely? poetimizely is a library to generate type safe accessors for Optimizely experiments and features. Type safe means that referencing…

Kotlin

2 min read

Announcing poetimizely library 📢
Announcing poetimizely library 📢
Kotlin

2 min read


Mar 1, 2020

Kotlin expressiveness

One of the things that feels much different in Kotlin compared to Java is the type system. The void keyword for example is not present in Kotlin, so Unit type is used instead: fun functionReturningNoValue(): Unit { println(“Hello”) } I would say that this approach is more consistent than using…

Kotlin

3 min read

Kotlin expressiveness
Kotlin expressiveness
Kotlin

3 min read


Published in

ITNEXT

·Jan 18, 2020

Any, Unit, Nothing and all their friends

Any This is an easy one, Any is just the “root” type, so every other type extends from it. It is like Object in Java, in fact, the compiled code for a value of type Any is an Object. // Kotlin val greeting: Any = "Hi there!" // Java private final…

Kotlin

3 min read

Any, Unit, Nothing and all their friends
Any, Unit, Nothing and all their friends
Kotlin

3 min read


Dec 12, 2019

You may not need a sealed class

When it comes to decide between using an enum or a sealed class in Kotlin, I’ve seen several situations where developers where using them indistinctly. Generally speaking, sealed classes are more powerful than enums. …

Kotlin

2 min read

You may not need a sealed class
You may not need a sealed class
Kotlin

2 min read


Nov 15, 2019

To class, or to data class, that is the question

Whenever we write a new class in Kotlin, we may feel tempted about defining as a data class. But should every class which is a data holder be a data class? I don’t think so. …

Kotlin

2 min read

To class, or to data class, that is the question
To class, or to data class, that is the question
Kotlin

2 min read

Patxi Bocos

Patxi Bocos

148 Followers

Impure developer and functional programming enthusiast

Following
  • Andres Sandoval

    Andres Sandoval

  • Elye

    Elye

  • Arnaud Giuliani

    Arnaud Giuliani

  • Manuel Vivo

    Manuel Vivo

  • theapache64

    theapache64

See all (122)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams