How can I raise the screen to the top when opening the keyboard

Hello
How can I raise the screen to the top when opening the keyboard

Hello
Can you tell me the version of the editor you are using and the platform (web, instant game, or native)?

Cocos creator 3.6.1
Android

Currently can not do it well on all Android devices as different devices have different behavior. That’s why we give up implementing it on Android. The crux of the problem is that the height of the keyboard cannot be obtained correctly.

Our engineers have informed the reason above. Of course, you can customize your effect on Android native java code. (It may not be completely generic)
You can refer to

EditBox-android.zip (1.7 KB)
CocosEditBoxActivity.zip (4.8 KB)
CocosActivity.zip (2.7 KB)

@muxiandong @zhangxm

This is only working for portrait mode, for Landscape whole UI is shrinking.
Any idea about this?
Also why cant you just use code from Cocos2d-x 3.17.2 branch code for this? That was working fine for any Android device as per my experience.