CallMeMaybe

Additional

Language
Java
Version
v1.2.0 (Jun 3, 2016)
Created
May 3, 2016
Updated
May 28, 2018 (Retired)
Owner
Michael Rozumyanskiy (MichaelRocks)
Contributor
Michael Rozumyanskiy (MichaelRocks)
1
Activity
Badge
Generate
Download
Source code

Advertisement

CallMeMaybe

An Android EditText for phone numbers.

This library uses libphonenumber-android for phone number formatting.

Download

Gradle:

repositories {
  jcenter()
}

dependencies {
  compile 'io.michaelrocks:callmemaybe:1.2.9'
}

Usage

Just replace your EditText with the PhoneEditText and that's it!

If using the PhoneEditText view doesn't work well for you it's possible to make TextView act as the PhoneEditText.

final TextView phoneEditText = (TextView) findViewById(R.id.phoneEditText);
CallMeMaybe.attachTo(phoneEditText);

If you already use libphonenumber-android somewhere in you project pass an instance of PhoneNumberUtil to CallMeMaybe using the CallMeMaybe.setPhoneNumberUtil(PhoneNumberUtil) method to avoid creation of another instance of PhoneNumberUtil.

License

Copyright 2017 Michael Rozumyanskiy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.