Open in app

Sign In

Write

Sign In

Alex Vanyo
Alex Vanyo

143 Followers

Home

About

Published in Android Developers

·6 days ago

Density, Devices and Flaky Tests

Writing a custom layout in Compose is a great way to fine-tune how your app’s UI looks, and it isn’t as daunting as it might seem. Once you’ve written your custom logic, you should also write tests for it! …

Android

5 min read

Density, Devices and Flaky Tests
Density, Devices and Flaky Tests
Android

5 min read


May 22, 2022

Kotlin functions: %, rem and mod

This is a short article I’m writing in 2022 for my future self, because I keep forgetting the difference between these functions and their precise behavior. Maybe you’ll also find it useful! TL;DR for modern Kotlin (version 1.5 and later): % is the same as rem, mod is different %/rem will return 0 or a value with the…

Kotlin

2 min read

Kotlin functions: %, rem and mod
Kotlin functions: %, rem and mod
Kotlin

2 min read


Published in Android Developers

·Jan 18, 2022

Jetnews for every screen

We recently updated Jetnews to enhance its behavior across all mobile devices, both big and small. We’d like to take you through our design and development process so that you can learn the philosophy and associated implementation steps for building an application optimized for all screens with Jetpack Compose, including…

Android

10 min read

Jetnews for every screen
Jetnews for every screen
Android

10 min read


Published in Livefront

·Mar 31, 2021

Don’t Make Your Code Predict the Future

It’s sometimes nice to think about code in a vacuum. Perhaps that function you just wrote elegantly solves a problem, or some interface models the situation perfectly. You submit your modification, happy with the changes, introducing just enough complexity without causing any unintended side-effects. Unfortunately, we live in the real…

Programming

7 min read

Don’t Make Your Code Predict the Future
Don’t Make Your Code Predict the Future
Programming

7 min read


Published in Livefront

·Feb 5, 2021

Advanced Android Edge-to-Edge (Part 2): BottomSheetDialogFragment

This is the second part of a series devoted to providing complete working examples of advanced use cases for insets on Android. The snippets in these posts can be found in context at https://github.com/alexvanyo/android-edge2edge. Part 1: Responding to keyboard transitions with MotionLayout Part 2: Insets and BottomSheetDialogFragment Part 3: Mind…

Android

3 min read

Advanced Android Edge-to-Edge (Part 2): BottomSheetDialogFragment
Advanced Android Edge-to-Edge (Part 2): BottomSheetDialogFragment
Android

3 min read


Published in Livefront

·Jan 15, 2021

Advanced Android Edge-to-Edge (Part 1): Keyboard Transitions with MotionLayout

This is the first part of a series devoted to providing complete working examples of advanced use cases for insets on Android. The snippets in these posts can be found in context at https://github.com/alexvanyo/android-edge2edge. Part 1: Responding to keyboard transitions with MotionLayout Part 2: Insets and BottomSheetDialogFragment Part 3: Mind…

Android

7 min read

Advanced Android Edge-to-Edge (Part 1): Keyboard Transitions with MotionLayout
Advanced Android Edge-to-Edge (Part 1): Keyboard Transitions with MotionLayout
Android

7 min read


Published in Livefront

·Nov 17, 2020

Dagger Hilt: Testing injected Android components with code coverage

Dagger Hilt, JaCoCo, Robolectric, Espresso, oh my! Dagger Hilt is Google’s new opinionated add-on for setting up Dagger 2 for Android. Through its tie-ins with androidx and preconfigured components, it should be able to meet the common dependency injection demands of most apps. Google also lays out a testing philosophy…

Android

4 min read

Dagger Hilt: Testing injected Android components with code coverage
Dagger Hilt: Testing injected Android components with code coverage
Android

4 min read


Published in Livefront

·Nov 2, 2020

sealed-enum: Replacing Enums in Kotlin

Enums are dead, long live enums! This is the origin story for https://github.com/livefront/sealed-enum, a Kotlin annotation processor for generating enum-like objects from sealed classes of objects. …

Kotlin

4 min read

sealed-enum: Replacing Enums in Kotlin
sealed-enum: Replacing Enums in Kotlin
Kotlin

4 min read


Published in Livefront

·Jul 29, 2020

Kotlin: A tale of cyclical static initialization

Take this seemingly simple piece of Kotlin code, which we will run on the JVM platform: Seems like it might be a good guessing strategy for a multiple choice test (assuming a computer didn’t generate it, of course). Since all good code comes with tests, let’s make sure our…

Kotlin

5 min read

Kotlin: A tale of static cyclical initialization
Kotlin: A tale of static cyclical initialization
Kotlin

5 min read


Published in Livefront

·Jun 12, 2020

kotlinx.serialization: JSON deserializer with a fallback

In a perfect world, the consumer and producer of an API would always be in lockstep, only changing with each other and adhering to the strictest of contracts. …

Kotlin

2 min read

kotlinx.serialization: JSON deserializer with a fallback
kotlinx.serialization: JSON deserializer with a fallback
Kotlin

2 min read

Alex Vanyo

Alex Vanyo

143 Followers

Android DevRel Engineer @ Google

Following
  • Collin Flynn

    Collin Flynn

  • Manuel Vivo

    Manuel Vivo

  • Jose Alcérreca

    Jose Alcérreca

  • Chris Arriola

    Chris Arriola

  • Yacine Rezgui

    Yacine Rezgui

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech