Gesture-Handling Modifiers in Jetpack Compose | by Sherry Yuan

Photo by Ebuen Clemente Jr on Unsplash Jetpack Compose is Android’s modern UI toolkit, where UI elements are built with declarative Composable functions. It offers a new set of APIs to help detect user gestures. If you haven’t worked with Compose yet, I suggest learning its basics before reading this article. This article is part … Read more

How Gestures Work in Jetpack Compose | by Sherry Yuan

Photo by Edvard Alexander Rølvaag on Unsplash This article is the fifth and final part of my Android Touch System series, and covers how pointer events work in the Jetpack Compose hierarchy, some limitations of gesture detection in Compose, and how to create custom Modifiers for overcoming the limitations. It assumes readers have some understanding … Read more

Android Touch System — Part 3: MotionEvent Listeners | by Sherry Yuan | Apr, 2022

Photo by Ilyuza Mingazova on Unsplash This is Part 3 of my Android Touch System series. Parts 1 and 2 take a deep dive into touch functions (onDispatchTouchEvent(), onInterceptTouchEvent(), onTouchEvent()) and how touch events flow through the view hierarchy. This post will cover the main event listeners provided by the View class, as well as … Read more