How to add margin between EditText and Soft Keyboard?

前端 未结 6 1725
刺人心
刺人心 2020-12-16 09:58

I want to add 10dp margin between EditText and Soft Keyboard.

\"enter Here is my XML:<

6条回答
  •  鱼传尺愫
    2020-12-16 10:26

    I solved the same problem by adding just two lines

    Add this line in EditText -

    android:imeOptions="actionSend|flagNoEnterAction"
    

    and this line in Manifeast file in Activity tag add -

    
    

    and remove all code that you use to do this like onTouchListner and it should work.

提交回复
热议问题