2

I need to implement a (soft)keyboard for an Android application.
Is GridLayout the correct View widget to contain all the keys?
Or is there other widget more suited for this specific requirement?

Ricardo A.
  • 685
  • 2
  • 8
  • 35
ilomambo
  • 8,290
  • 12
  • 57
  • 106
  • Have a look at this project: https://github.com/ankushsachdeva/emojicon it's kind of what you want IMHO – Gavriel Jan 28 '16 at 15:12
  • @Gavriel Thanks, I had a look. It uses GridView, which I think is meant for scrolling content out of screen, in my case all keys are visible all the time, so no need for an adapter View. – ilomambo Jan 29 '16 at 08:54

1 Answers1

1

I think you just need a KeyboardView, it's very easy, you don't need to make all the keys or use specific layouts.

here a tutorial: http://www.fampennings.nl/maarten/android/09keyboard/index.htm

And here you will see a implementation that I made: Soft keyboard's POPUP layout

Community
  • 1
  • 1
Ricardo A.
  • 685
  • 2
  • 8
  • 35