detect softkeyboard status
MAMSoftKeyBoardStateHelper help you to detect softkeyboard status and do your job in view. enjoy it :D.
See the sample app. Typical usage: in the activity:
SoftKeyBoardStateHelper softKeyBoardStateHelper;
softKeyBoardStateHelper.addSoftKeyBoardStateListener(this, new SoftKeyBoardStateListener() {
@Override
public void onSoftKeyBoardOpened(int keyboardHeightInpx) {
//do some thing keyboard is opened
}
@Override
public void onSoftKeyBoardClosed() {
//do some thing keyboard is closed
}
});
- Add the JitPack repository to your root build.gradle:
repositories {
maven { url "https://jitpack.io" }
}
- Add the dependency to your sub build.gradle:
dependencies {
implementation 'com.github.mirshahbazi:MAMSoftKeyBoardStateHelper:14b305e465'
}
Copyright MAM