4

I have edit text element that will get the phone number, I need the phone number to be include country code in +xxx format. I am using android:inputType="phone"

how I can force the input to have that +Countrycode in the number?

I want something like Google contacts if possible or similar. If instead of flag just the country code is possible , that is also OK.

dmSherazi
  • 3,743
  • 5
  • 37
  • 62

1 Answers1

1

Finally I used IntlPhoneInput. Although I had to tweak it for my usage but this is a nice library.

Its available on gradle.

compile 'net.rimoto:intlphoneinput:0.9.3'
dmSherazi
  • 3,743
  • 5
  • 37
  • 62