Get the height of the Android on-screen keyboard _without_ "adjustResize"

I have an animation between two fragments. The second fragment will call the keyboard. Since the keyboard will cover parts of the screen, I need to manually, but for this I need to arrange the spacer to adjust my viewing. Using android:windowSoftInputMode="adjustResize" will cause my transition animation to be super-laggy. Using adjustNothing , on the other hand, will make it smooth.

So, is there a way to get keyboard height without using adjustResize ?

EDIT: My question is different from fe. Is there any way in android to get the height of the deviceโ€™s virtual keyboard since I cannot add adjustResize

+7
android android-layout android-activity android-manifest
source share

No one has answered this question yet.

See similar questions:

155
Android How to adjust the layout in full screen when the keyboard is visible
36
Is there any way in android to get the height of the deviceโ€™s virtual keyboard

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to keep Android activity state by saving instance state?
2097
Is there a way to run Python on Android?
1296
Restart activity during Android rotation
1270
How to transfer data between actions in an Android application?
1188
How to get the build / version number of your Android app?
1152
The difference between gravity and layout_gravity on Android

All Articles