Sign in

Vladislav Shesternin

How to transform components of MotionLayout.

Part 1: MotionLayout with…


What is MotionLayout and layout files.

Part 2: Сreating animation…


Detailed instructions for creating animations with MotionLayout and layout files.

Part 1: MotionLayout with…


KotlinCoroutines: set up SharedFlow by testing ⚒

Photo by Daniil Silantev on Unsplash
  1. Initialize MutableSharedFlow:
val flow = MutableSharedFlow<Int>()
init {
CoroutineScope(Dispatchers.Default).launch {
flow.collect { log("flow = $it") }
}
}
val value: Int = 5
flow.tryEmit(value)
val flow = MutableSharedFlow<Int>(replay =…

3 great ways to get data from a callback using a coroutine

Photo by Elaine Casap on Unsplash

0️⃣ Define a result class:


Dynamic set-up of the starting destination.

Photo by Braden Collum on Unsplash


An example of the beautiful Base-Fragment. {ViewBinding, ViewModel, Hilt}

BASE_FRAGMENT {ViewBinding, ViewModel, Hilt}


MotionLayout: creating MotionScene without XML


dispatchTouchEvent, onInterceptTouchEvent, onTouchEvent

Photo by Yoann Boyer on Unsplash

The resources that were most helpful in understanding the topic:

1. https://guides.codepath.com/android/gestures-and-touch-events

2. https://medium.com/mobile-app-development-publication/understanding-android-touch-flow-control-bcc413e6a57e

3. https://suragch.medium.com/how-touch-events-are-delivered-in-android-eee3b607b038

What can you implement by reading this article:

Vladislav Shesternin

Разработчик Android. Фанат, энтузиаст, создатель анимации

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store