FloatOnKeyboardLayout is a ViewGroup that auto push up when soft keyboard popups.
- Make soft keyboard can not overlap you views.
- Only one simple class, not dependency other libs
Then, add the library to your module build.gradle
dependencies {
compile 'im.ll:floatlayout:1.0.0'
}
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>