I am creating an Android keyboard with Eclipse. I want to implement popup keyboards which show up when you long press a key.
Therefore I assigned the
android:popupKeyboard="@xml/a_popup"
property to the key-tag and created a popup keyboard under "res/xml/a_popup.xml"
That works fine, but since I want a lot of different popup keyboards and I don't want them all to be directly in "res/xml/", so I moved the "a_popup.xml" file to "res/xml/popup_keyboards/"
But now I can't make a reference to the xml-file any more from my popupKeyboard-property by saying
android:popupKeyboard="@xml/popup_keyboards/a_popup"
If I do so, I get the message, that there is no resource which matches the given name. There is also no entry in the R.java file, although I cleaned the project.
I also tried to reference the popup keyboard by an ID but then I get a ResourcesNotFound Exception everytime I longpress the button.
Has anybody an idea why this happens?