jisungbin / KeyboardBeautify

Awesome keyboard animator that supports Android SDK 21+ ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyboardBeautify

Awesome keyboard animator that supports Android SDK 21+ ✨

This library was created based on the android/user-interface-samples.

Preview

Come to YouTube for a smoother preview -> https://youtu.be/Sp9QJEopFp4


Download

implementation "land.sungbin:keyboardbeautify:${version}"

Usage

VERY SIMPLE. JUST ONE LINE.

Kotlin

Basic extension. Support SDK 21+.

Activity.keyboardBeautify(
    rootView: ViewGroup,
    inputLayout: ViewGroup,
    otherView: View? = null, // Optional, View to which animation is applied according to the state of the IME.
    editText: EditText // Automatically sets the EditText focusing to match the state of the IME.
)

XML

Optional beautify. Support SDK 30+.

Automatically control the IME insets and visibility with nested scrolling of views.

<land.sungbin.keyboardbeautify.layout.InsetsAnimationLinearLayout />
<land.sungbin.keyboardbeautify.layout.InsetsAnimationConstraintLayout />

Example

You can see examples of using Activity.keyboardBeauify in the app folder of this project.


Articles (ko)

  1. 안드로이드 WindowInsets으로 키보드 애니메이션 구현하기 (1)
  2. 안드로이드 WindowInsets으로 키보드 애니메이션 구현하기 (2)
  3. 안드로이드 WindowInsets으로 키보드 애니메이션 구현하기 (3): 작성 중

Happy Coding :)

About

Awesome keyboard animator that supports Android SDK 21+ ✨


Languages

Language:Kotlin 100.0%