Search code examples
androidandroid-fragmentskeyboardandroid-softkeyboardandroid-keypad

Android hardkey keyboard


I have hardkey dialpad through which I want to enter number as well as alphabets, like a old dial pad mobile phone.

Now I want is, that when I enter text in edittext, a small keyboard or fragment should pop up showing all options possible right next to the edit text.

For ex. if I press 2, it should show |2|A|B|C| right next to edit text.

Any ideas on how to implement this?


Solution

  • I found a solution.

    I declared a Linear Layout in my activity_main.xml

    after doing that I programatically add required buttons to a dynamically created view and then add that view to the original layout dynamically, along with moving it with the cursor.

    That solves my problem