Edittext hide under keyboard when edittext create on RunTime

后端 未结 2 820
遥遥无期
遥遥无期 2021-01-29 10:09

I have a layout with scroll view as root layout with one linear layout as child with vertical orientation. I add a list of edit text dynamically in linear layout onCreate of ac

2条回答
  •  终归单人心
    2021-01-29 10:38

    In your Manifest file add the following code for this particular activity

    
    

    or

    Activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
    

提交回复
热议问题