Will Verduzco · Oct 26, 2013 at 03:00 pm

Create a Custom Soft Keyboard Layout for Your App

For the vast majority of situations, preexisting keyboard layouts are more than adequate. After all, most input fields in most apps require the input of letters or numbers, and pretty much all aftermarket keyboard solutions have adequate layouts for both situations. However, if you’re authoring an app that requires a more purpose-built keyboard, the standard layouts may no longer suffice.

XDA Senior Member SimplicityApks recently created a math analysis tool called FunctionCapture. In creating his app, he quickly found that requiring users to use the default keyboard layouts would prove too cumbersome. Instead, he decided to create his own keyboard layout, tailored for the functions required by his app.

After learning how to create a custom layout, SimplicityApks then shared the instructions in an easily comprehensible manner. Much of the guide is based on a previously created tutorial by developer Maarten Pennings, which the OP has then expanded to include why you perform each of the steps. And to make the overall look match the theme of your app, SimplicityApks has also included a guide (second post) on how to theme your newly created keyboard, so that it matches the overall look and feel of your app.

If you are designing an app that requires non-standard user input, you may want to look into using a custom soft keyboard layout. To learn how to implement this in your own app, head over to the tutorial thread.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mario Tomás Serrafero · Jul 5, 2015 at 11:00 am · 2 comments

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC's situation. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below!     HTC is underperforming, and there isn’t much of a way of denying this. In April, their revenue nearly declined 40%, plummeting after the HTC One M9 had...

XDA NEWS
Mathew Brack · Jul 4, 2015 at 05:07 pm · 4 comments

HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading speed, audio and selfies. Whilst you are surely astounded that HTC won every time, the tests were incredibly biased and their release shows something concerning about the company and how they are performing in the current market.     One of the many reasons companies tend to utilize blind trials is when they feel that their product is comparable or better than its competitors. This leads to the assumption...

XDA NEWS
Mario Tomás Serrafero · Jul 4, 2015 at 12:00 pm · 5 comments

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and here are our top picks for this week.  ...

XDA NEWS
Share This