/FloatOnKeyboardLayout

The Android layout (ViewGroup) which auto push up when soft keyboard popups。 当软键盘弹出时,界面自动上浮,使界面不会被软键盘遮挡

Primary LanguageJava

FloatOnKeyboardLayout

FloatOnKeyboardLayout is a ViewGroup that auto push up when soft keyboard popups.

Features

  • Make soft keyboard can not overlap you views.
  • Only one simple class, not dependency other libs

Gradle Dependency

Then, add the library to your module build.gradle

dependencies {
    compile 'im.ll:floatlayout:1.0.0'
}

Sample Usage

In the layout xml files, simply add FloatOnKeyboardLayout as root element. There is only one child in FloatOnKeyboardLayout.

<github.ll.view.FloatOnKeyboardLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
	
	<...other views
	...>
</github.ll.view.FloatOnKeyboardLayout>