Allow only decimal numeric input and use phone soft keyboard?

by Watter » Fri, 23 Apr 2010 08:03:48 GMT


Sponsored Links
 I am trying to do something that I thought would be simple, yet I
still haven't found the right approach.

I have a EditText field that should only accept unsigned decimal
entries. Using android:inputType="numberDecimal" in my layout xml file
achieves this, however the soft keyboard that is raised with this
inputType is the standard keyboard but just uses the alternate view
with the number row on top. This is far from ideal for a field that
only allows numbers. A much better soft keyboard for numeric entry is
the "phone" one. It has all of the numbers and a decimal. Perfect!!
Well, except that for the life of me I cannot figure out how to use
both the phone keyboard AND allow only numeric entry. I've tried
everything I can think of but if I use the phone soft keyboard then
the input field also allows things like "(" and any of the other
symbols available on that keyboard.

Is there any way to get the nice big numeric buttons of the phone
keyboard along with only allowing decimal entry?

--



Other Threads

1. Android porting problems

I ve created the uImage of the Android kernel,and loaded that into the
boot partition of the SD card and the Android_RFS i m accessing via
nfs.But this is message i get when i load the kernel onto the OMAP
3530 board....How to proceed?


Texas Instruments X-Loader 1.41
Detected Samsung MuxOneNAND1G Flash
Starting OS Bootloader...


U-Boot 1.1.4 (Sep 25 2008 - 20:16:32)

OMAP3-GP rev 2, CPU-OPP2 L3-165MHz
OMAP3EVM 1.0 Version + mPOP (Boot ONND)
DRAM:  128 MB
OneNAND Manufacturer: Samsung (0xec)
Muxed OneNAND 128MB 1.8V 16-bit (0x30)
OneNAND version = 0x0221
Scanning device for bad blocks
num of blocks = 1024
onenand_wait: controller error = 0x2400
Bad factory block98 at 0x00c40000
In:    serial
Out:   serial
Err:   serial
Reseting CHIP... Done
LAN9x18 (0x01150002) detected.
Setting mac address: aa:bb:cc:dd:ee:ff
start Auto negotiation... (take ~2sec)
Auto negotiation complete, 100BaseTX, full duplex
Hit any key to stop autoboot:  0

2039024 bytes read

** Unable to read "ramdisk.gz" from mmc 0:1 **
## Booting image at 80000000 ...
   Image Name:   Linux-2.6.29-omap1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2038960 Bytes =  1.9 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Nanya upgrade htc dream

Boss2 sekalian,
Newbie mau nanya nih. Baru pake Dream 3 hari. Waktu dapat udah di upgrade ama 
boss Lucky jadi spt ini
DREA100 PVT32B
HSPL10.95.3000
CPLD-4
RADIO-1.22.12.29

Firmware 1.6
Baseband 62.33.20.08U_1.22.12.29
Kernel 2.6.29.6-CM4
Mod:Cyanogen 4.1.5
Build Number DRC59

Kemaren sempet buka2 website  Cyanogen dan kemudian ketemu ROM 4.1.11.1-nya, 
dan kemudian saya download dari
http://forum.xda-developers.com/showthread.php?t=539744
Apakah ada yg udah cobain? Gimana ya reviewnya? Kemaren saya sempet baca yg 
4.1.6, banyak yg puas kelihatannya, apalagi dibandingkan 4.1.5-nya.

Pertanyaan saya,
1. kalau mau upgrade, langkah2nya apa yang perlu dipastikan dulu supaya nggak 
brick?
2. Kalau saya mau upgrade radio sekalian, mana yang harus duluan? Rom atau 
radio?
3. Dalam kondisi spt dream saya ini, apakah perlu oprek2 SPLnya lagi?
4. Apakah ada link2 tutorial upgrade ROM yg jelas step by step?
5. kejadian2 menegangkan apa yg kira2 bisa dihadapi? Misalnya boot looping atau 
lainnya? Dan kira2 apakah langkah penyelamatannya?
Mohon bantuan boss2 sekalian.

Thanks in advance

Dom

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

3. Facebook public API

4. Ubiquity Firefox in android

5. Help needed in porting linux drivers on android

6. Flickr-j api on Android?

7. adb log's over Bluetooth port