Android- edit text - get a phone number in international format, for example + xxxxxxxxx

I have a text editing element that will get a phone number, I need a phone number that will include a country code in + xxx format. I useandroid:inputType="phone"

how can i get the input to have this + country code in the number?

I want something like google contacts if possible or something like that. If instead of a flag only the country code is possible, this is also normal.

+4
source share
1 answer

Finally, I used IntlPhoneInput . Although I should have configured it for my use, it is a good library.

Its available on gradle.

compile 'net.rimoto:intlphoneinput:0.9.3'
+1

All Articles