Defaulting to numeric keyboard on EditText without forcing numeric input.

by Mike Olson » Fri, 07 Aug 2009 01:00:46 GMT


Sponsored Links
 I have an EditText that I don't want to force to be a number, but
chances are it almost always will start with a number (The field is
"Quantity", and I'd like to to be free text, so I can write "1 oz", "2
boxes", etc).

Is there a way to have the on-screen keyboard default to the numeric
keyboard, but still allow me to enter letters if I press the "ABC"
button?  If I say add android:number="integer" it won't allow non-
numeric inputs.

Thanks,
Mike

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Proses Rooting

Akhirnya bisa masuk ke terminal dan sudah melakukan reboot bootloader, setelah 
enter homescreen ke fastboot use, celakanya hubungan mount dr pc ke device 
keputus. Dicoba konek lagi gak bisa.

Ada pilihan HBoot Mode dan Reset Device...

Apa yg harus daku lakukan? *panik*

Sent from my Android

--~--~---------~--~----~------------~-------~--~----~
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:

Click  

2. My posts are not displayed

Hi

I am new to this group. I had posted a question yesterday in this
group. It didn't appear. I thought I made a mistake; so I posted it
today and it didn't appear either. I realized now that this group has
something called moderators before it reaches the posting.

Am I missing something or did anything wrong? My question was a simple
application question and didn't have any bad language in it.

Could some please let me know if the question was rejected? If so what
is reason so that I can correct it.

Thank You and appreciate the Help!
Jacob

-- 

3. Listview and autocomplete problems!

4. How to implement answer function programmetically?

5. Two processes are created on first running of my application?

6. What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

7. can't compile opencore