I want to add 10dp margin between EditText and Soft Keyboard.
Here is my XML:<
Adding android:windowSoftInputMode="adjustResize"
to the activity in manifest should solve the issue.
And this won't work if your activity is running in fullscreen. So in that case, instead of making it fullscreen via code, just add or change the style to style.xml and use this as your AppTheme. adjustResize or adjustPan both will work.