Skip to content

Country Code Picker (CCP) is an android library which provides an easy way to search and select country or international phone code.

License

Notifications You must be signed in to change notification settings

aliminurudeen/CountryCodePickerProject

 
 

Repository files navigation

Country Code Picker Library

If you are looking for an android library for Country Selector or Country Spinner or Country Phone Code selector, this is the perfect place for you.

Country Code Picker (CCP) or is an android library which provides an easy way to search and select country or country phone code for the telephone number.

AwesomeCCPLIbrary

Introduction

  • Give a professional touch to your well designed form like login screen, sign up screen, edit profile screen with CCP. When used as phone code picker, it helps by removing confusion about how to add phone number and making view more understandable.

  • With CCP you can get following views easily without boilerplate code. (Left: Phone code selector. Right: Country Selector)

  • Tapping on CCP will open a dialog to search and select country (Left: Phone code selector. Right: Country Selector)    -

How to add to your project

Add this to your gradle file and sync

  dependencies {
    compile 'com.hbb20:ccp:2.1.1'
  }

What's new?

  • Auto detects country while typing area code (among multiple countries with code "+1")
  • Option to remember last selection.
  • If you are using version lower than 2.0.0 then please read update guide before upgrading to v2.0.0.*

Features

If you prefer experience along with explanations, an demo android app is available that demonstrates all the features of this library. Click below button to download from Playstore.

Available XML properties

To check all xml properties available for CCP and CCP Selection ppDialog, please visit the wiki page.

Change log

Next version (Under development)
version 2.1.1 (Dec 13, 2017)
  • Opens Country class (Renamed to "CCPCountry" to avoid naming confusion) (issue#136)
  • Fixes preview in Android Studio 3
  • Auto detects country while typing based on area code (for countries with code "+1") (issue#140)
  • Cursor color follows ccpDialog_searchEditTextTint color (issue#131)
  • Possible fix for crash (issue#67)
version 2.1.0 (Nov 17, 2017)
  • Introduces countryAutoDetectionPref option (Default: SIM then NETWORK then LOCALE) Read more
  • Now default value for ccp_autoDetectCountry is false instead of true.
  • Option to remember last selection. Read more
  • Uses android's port instead of libphonenumber. (Suggestion)
version 2.0.9 (Nov 10, 2017)
  • Adds dutch language support
  • Updates build tool version
version 2.0.8 (Nov 1, 2017)
  • Corrects Myanmar flag
  • Applies TypeFace to dialog text as well. Read wiki.

For earlier versions, check full log.


Credits

Contribution

License

Apache Version 2.0

Copyright (C) 2016 Harsh Bhakta

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.

About

Country Code Picker (CCP) is an android library which provides an easy way to search and select country or international phone code.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%