Put the following lines in your onCreate()
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
Then your Activity will automatically push up/down when , Key Board shown/hide in screen.
Setting up with , Manifest file , didn't work for me.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…