CodeEditor widget always applies 100 margins, see the code below Extract from source code recyclerViewParam.setMargins(0, height - 100, 0, 0); paramsTxtprocessor.setMargins(0, 0, 0, 100); Can you set it to 0 instead of 100?