glace
glace

Reputation: 2210

Android custom keyboard - Class not found (XML)

What i want to do:

Create a custom keyboard, since default keyboards are not sufficient.

Keys needed: 0-9, '-', ',', 'e', 'del' and one empty one where i can put the logo.

I already achieved this in iOS with inputAccessoryView, but after some research i believe there is nothing similar in android. So i decided to go the way of creating my own Keyboard in xml.

Tested Source is from here.

But the XML Designer in Android Studio tells me: The following classes could not be found:

Tip: Try to build the project.

I have no clue what this error is about, and stated tips by android studio aren't doing anything.
Any help is appreciated!

EDIT: Ok, to make it clear: Android Studio doesn't know the xml tag "< Keyboard >". Why? Do i need some sort of special import in the manifest file? or sth in the gradle files?

EDIT 2: To make it really clear what happens to be my problem here:

enter image description here

enter image description here

Upvotes: 1

Views: 571

Answers (1)

Alvaro
Alvaro

Reputation: 1448

It is possible to do a custom keyboard!

The Keyboard design must be in res/xml/qwerty.xml.

I would recommend you to follow this tutorial, where it is explained how to do it from scratch.

Good luck and hope it helps! :)

Upvotes: 1

Related Questions