Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Brad Wilder
Brad Wilder
3,541 Points

Necessary symbol not showing on number inputType

At my job my coworkers and I have to occasionally sort a group of 50-60 numbers in numerical order and this can be time consuming. To make things easier on us I made an app to sort a string of numbers, separated by commas, numerically. The problem I'm having is regardless of the inputType that is set some phones won't display the number layout with a comma. The AVD showed this while my S4 was showing this. Please note the S4 screenshot is for numberSigned but the - would change to blank or . depending on whether inputType is set to number or numberDecimal respectively. It would be easier on my users (coworkers) if I could get this to work with always showing a comma as that is how we have to display it at work so I would prefer not to allow the use of decimals as well. Hopefully this is explained well enough but if you need anymore information or clarification please feel free to ask and thanks for any help in advance.

1 Answer

Ben Jakuben
Ben Jakuben
Treehouse Teacher

This is the bane of Android developers! You're running up against the variations on stock Android provided by the manufacturers.

The only way to truly guarantee a common keyboard experience across all devices would be to define your own keyboard layout. There is a long section on this in the developer docs. I found a tutorial about this that looks promising: http://forum.xda-developers.com/showthread.php?t=2497237

Also, you could check GitHub for custom keyboards and see if there is something you can modify, like this example Math keyboard.