Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
298 views
in Technique[技术] by (71.8m points)

android - KeyboardView is depecrated and I need a custom implementation of the class

I am making an IPA keyboard. There aren't many great IPA keyboards out there and if there are, they don't fit all my needs. KeyboardView is deprecated and so is the Keyboard class. Besides they are very limited. I am new to android dev but I do have some experience so I wanted to figure out a way to make a custom class that implements KeyboardView. I have never made a custom view before and this seems like a huge deal to me. I would like to find someone that can help me through this milestone of making custom keyboard view.

Here are a few things I want my keyboard app to do:

  • The keyboard layout should be like a pannable view kinda like codeblocks in stack overflow. You can move it like its detached from the rest of the screen and it can be scrolled in all directions not just vertical or horizontal. Since the IPA chart is very complicated, I want to show one whole chart on each page of my keyboard and let the user switch between different charts like how you switch between special charatcers and the alphabet in normal keyboards (for example all the consonants on one page and all the vowels on another and let the user pan each chart like a sheet of paper. kinda like emoji panels except they are both vertically scrollable and horizontally and even any combination of the two.
  • For some rows, the number of characters is very large. for example a row in the IPA chart has a total of 22 characters. I cant fit all of that in one page of the keyboard without making it scrollable. I also dont want different rows to have different sizes of buttons, it looks very cluttered and ugly - I have tried.
  • If you have used Gboard, you should have noticed a panel above all the keys that lets you open google search, switch to emoji panel or open the gif selecting thingy.., instead of gifs and emojis, I want to have panel like that to switch between different pages of my keyboard. This is what I was talking about in point number 1.

this is how it looks right now

i want all the keys to be the same size and consequently i would have to make the layout scrollable/pannable. How do i do that?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...