This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

WindowInsets Handling & Keyboard Animations

Jul 20 2021 · Video Course (35 mins) · Intermediate

Until now keyboards and Androids seemed to go in opposite directions. There was no API you could query to learn if the keyboard was open or to know its size. When the keyboard popped up, the screen and views would automatically rearrange themselves without a smooth transition.

In this course learn how to interact with the keyboard via WindowInsets. Read its properties, know if it’s open, and create smooth, synchronous, animations.

4.3/5 3 Ratings

Version

  • Kotlin 1.5.10, Android 11, Android Studio 4.1.3 and Android Studio Arctic Fox Canary 12

Keyboard Handling in Android

The new IME features released with the WindowInsets API are not available on all Android versions.

Learn how to calculate different properties on those versions.

1

Learn how to know if the keyboard is open or not with the new WindowInsets functionalities introduced in API 30.

2

Learn how to read the keyboard height with the new WindowInsets functionalities introduced in API 30.

3

Learn how to modify your app insets in order to support animating the keyboard.

4

Learn how to smoothly open and/or close the keyboard.

5

Learn how to animate views synchronously with the keyboard being opened and/or closed.

6

Keyboard Handling in Jetpack Compose

Learn how to know if the keyboard is open or not with the new WindowInsets functionalities introduced in API 30.

7

Learn how to modify your app insets in order to support animating the keyboard.

8

Learn how to animate the keyboard and its surrounding views synchronously.

9

Who is this for?

This course is for intermediate Android developers that are looking to improve their keyboard interaction through animations and reading its state changes.

Covered concepts

  • WindowInsets
  • WindowInsets Animations
  • Window change listeners
  • IME
  • Keyboard Animations
  • Keyboard Properties
  • Animation Controller
  • Jetpack Compose
  • Jetpack Compose Animations
  • LazyColumn
  • Modifiers
  • State Changes

Contributors

Comments