by Jacksgong

For resolve the layout conflict when keybord & panel are switching (Android键盘面板冲突 布局闪动处理方案)

4.0K Stars 651 Forks Last release: about 2 years ago (v1.6.2) Apache License 2.0 195 Commits 14 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

The handler for the keyboard and panel layout conflict in Android

Download Build Status


This solution was built When I was working in WeChat, what is used for resolving the layout conflict when you switch between the keyboard and the emoji-panel/function-panel.

There is a post to declaration the core rules of this solution: Switching between the panel and the keyboard in Wechat

Welcome PR


JKeyboardPanelSwitch is installed by adding the following dependency to your

compile 'cn.dreamtobe.kpswitch:library:1.6.1'

If you want to import snapshot version, We have already publish the snapshot version to the sonatype so you can import snapshot version after declare the following repository:

allprojects {
  repositories {
      maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }



project and run it, I has already cover cases as much as possible in the demo project.



Copyright 2015 Jacks gong.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.