I have searched a lot and could not find the solution for that.
The thing is that I am making a Custom Keyboard. I have an XML file for the layout of this custom keyboard, stored in res/xml.
The problem is, that I want to change the keyboard layout from the java code. For that, I need to Open the xml file from res/xml/qwerty.xml and edit it with DOM In the Java Code.
How can I do it? And if it isn't possible how can I build such a keyboard that I can change dynamically through out the java code.
Thanks in advance.