Country Code Picker Library MavenCentral

ViewCount GitHub issues GitHub forks GitHub stars GitHub license GitHub search hit counter

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.



  • 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. See CHANGELOG for detailed list of changes.

        dependencies {
          implementation 'com.hbb20:ccp:X.Y.Z'


  • If you are using version lower than 2.0.0 then please read update guide before upgrading to v2.0.0. or above*
  • Version 2.3.1 and above uses AndroidX
  • Version 2.5.0 and above hosted on MavenCentral


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.




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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.


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

Countrycodepickerproject Info

โญ Stars1266
๐Ÿ”— Source
๐Ÿ•’ Last Update10 months ago
๐Ÿ•’ Created7 years ago
๐Ÿž Open Issues101
โž— Star-Issue Ratio13
๐Ÿ˜Ž Authorhbb20