Android layout has two layers, the bottom layer plays video and the top layer has input boxes. How can you not squeeze the bottom video layer when the soft keyboard pops up?

  android, question

The description of the problem is at the bottom. The input box is at the bottom of the screen. The first picture is not shown. The input box is at the bottom.
Look at the two pictures below: the screenshot below is taken from the live broadcast of the printer.
When there is no soft keyboard in the first picture
图片描述

When the soft keyboard in the second picture pops up
图片描述

The screenshot above is the effect I want, but I don’t know how to achieve this effect without squeezing the bottom video View.
By trying to set up: android:windowSoftInputMode
This attribute adjustUnspecified, adjustResize, adjustPan all squeeze the underlying video SurfaceView.
Setting adjustNothing can prevent extrusion, but the input box cannot be moved up.

public class TestLayout extends FrameLayout{
 private int mL,mT,mR,mB;
 private boolean isFist = true;
 
 public TestLayout(Context context) {
 super(context);
 bracket
 
 public TestLayout(Context context, AttributeSet attrs) {
 super(context, attrs);
 bracket
 
 public TestLayout(Context context, AttributeSet attrs, int defStyleAttr) {
 super(context, attrs, defStyleAttr);
 bracket
 
 @Override
 protected void onLayout(boolean changed, int l, int t, int r, int b) {
 if (isFist){
 mL = l;
 mT=t;
 mR=r;
 mB=b;
 isFist =false;
 bracket
 getChildAt(0).layout(mL, mT, mR, mB);
 bracket
 bracket

Use the above View package player, this is a method