sketchub icon

Keypad Visibility (soft visibility)

CS-Application.PK
4 Likes
2 Comments
53 Downloads

What's new

Codes In Description.......
Check Out
Like and Download to Support

Screenshots

About

this project help you to check visibility of keypad/soft to preform action which are executed when soft is visible and which action are executed when soft is invisible. Codes

android.graphics.Rect r = new android.graphics.Rect();

linear1.getWindowVisibleDisplayFrame(r);

int screenHeight= linear1.getRootView().getHeight(); int keypadHeight = screenHeight - r.bottom;
if (keypadHeight > screenHeight * 0.15) {
//when soft is visible
} else {
//when soft is invisible
}

©2024 Sketchub | User Policy