-1

my problem is creating EditText for phone numbers on Android.

I want to create EditText and when user entering phone number or letters, suggestions open drop-down list, like this:

How can I do this?

Kara
  • 6,115
  • 16
  • 50
  • 57
erdibasak
  • 1
  • 1
  • 3

3 Answers3

0

You need to use AutoCompleteTextView in your layout and then have a look at

http://developer.android.com/reference/android/widget/AutoCompleteTextView.html

and then

http://developer.android.com/training/contacts-provider/retrieve-names.html

Prakhar
  • 2,270
  • 19
  • 26
0

In Graphic Layout, rightclick on edittext, in InputType menu, select any number type - number, phonetic

When you will run the app, the on screen keyboard will show only numbers

Rahul Gupta
  • 5,275
  • 8
  • 35
  • 66
0

Its possible to supply phone numbers or contact names as adapter to auto complete text view.

The below link provides you a tutorial to achieve this requirement.

Fetch Phone contacts and Show it in AutoComplete TextView in Android

Neal
  • 379
  • 4
  • 9