Code Monkey home page Code Monkey logo

hbb20 / countrycodepickerproject Goto Github PK

View Code? Open in Web Editor NEW
1.5K 37.0 502.0 5.88 MB

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.

License: Apache License 2.0

Java 88.20% Kotlin 11.80%
ccp android-library country-codes country-flags phonenumber country-picker country-selector andriod-country-spinner phonecode-spinner country-spinner

countrycodepickerproject's Introduction

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.

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

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

MavenCentral

  • 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

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.

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.

countrycodepickerproject's People

Contributors

abuenovanadis avatar agraphie avatar ajojo44 avatar akalkowski avatar cjidealdev avatar dwilson-teladoc avatar fabriziogueli avatar fantasycheese avatar freszu avatar hamzaahmedkhan avatar hbb20 avatar iulianabozintan avatar janbolat avatar joshuabradbury avatar kaustubhk24 avatar kduhyun avatar kenneth2008 avatar kishansinghpanwar avatar lazyquis avatar mahmoudmabrok avatar massivemadness avatar mychaelgo avatar pirupius avatar sb-loqr avatar serggioc avatar serggiozs avatar tarunmahe avatar tobiashillen avatar tobiasschuerg avatar vladuken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

countrycodepickerproject's Issues

Auto detect function

Looking for an automatic way to detect the country from a string/phone number.

For example i have an edit text then a user enters a phone number, is there a method to detect the country code/info then update the flag and code automatically.

Margin of Arrow

First of all thank for adding font support.
I also want to reduce the gap between text & arrow.
When I show only contrycode in ccp, the gap between text & arrow increases.
Please tell how to do.

1.7.9 not found

compile 'com.hbb20:ccp:1.7.9' not found but 1.7.8 is okay.

Set Country Code Programmatically

Hi, Harsh Bhakt,

Great code you have made here, it saves my time a lot, I have a question on this,

how do you set country code programmatically? I found in your code only written setCountryForNameCode(), what should I add in front of it?

Thanks,
Tommy Kerosky

Remove India (in the code only ;p )

First of all, this is one of the most awesome android project that I've had the chance to ingrate. Big thanks for that.

I need to limit the list to some countries only, which I could successfully achieved; except that the Indian flag is still in first position, I don't find any place where it has been set.

Here is the code:
<com.hbb20.CountryCodePicker android:layout_gravity="center_horizontal" android:id="@+id/ccp" android:layout_width="wrap_content" android:layout_height="wrap_content" app:ccpLanguage="FRENCH" app:arrowSize="26sp" app:textSize="26sp" app:showFullName="true" app:customMasterCountries="BE,FR,AU,BG,CY,CZ,ES,FI,GB,HU,IT,LU,NL,PO,PR,RO,SE"/>

Thank you very for your help

java.lang.IndexOutOfBoundsException:

Hi

I am getting below error. Its very rare and got only two times.

Fatal Exception: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.hbb20.CountryCodeAdapter$2.onClick(CountryCodeAdapter.java:136)
at android.view.View.performClick(View.java:4780)
at android.view.ViewDebug$3.run(ViewDebug.java:826)
at android.os.Handler.handleCallback(Handler.java:756)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5263)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Hide Telephone code?

Quick question regarding your awesome library :)
Can I do something to hide it on the dialog? Thank you very much

Default country code ignores duplicate codes

If a user attempts to set a country code that applies to more than one country, only the first country in countries.xml will be selected as the default. As a result, there is no way to set US +1 as the default country, as the getCountryForCode loop will find Canada first, and set that as the default.

crash when use lib

when i try to use library and i use cardview the app crash and give this errors
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.internal.widget.TintManager" on path: DexPathList[[zip file "/data/app/com.vullett.weno-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]

Validate if phone number is correct

How can i achieve this with your library?

For example if i choose country then i enter phone number, how do i run a test to check if the full number entered is correct

Hide Search

Is there a way to remove the search at the top of the list?

I have only a shot list app:customMasterCountries="ZA,AU,BR,QA,NZ,UE,UK,US" therefore the search seems a bit pointless in this case.

Default country code

Hello

Thanks for this library

I have try to set default country code using integer code but unfortunately not set default country programmatically

I will set default country code dynamic using code If I set in xml than it's working

Thanks

"Found not to show search" was shown as Toast Message

I have tried the below code snippet to show my spinner dropdown. I have very limited countries and don't want to show search option.

<com.hbb20.CountryCodePicker
                android:id="@+id/ccp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:contentColor="@android:color/white"
                app:hideNameCode="true"
                app:showFlag="false"
                app:keyboardAutoPopOnSearch="false"
                app:selectionDialogShowSearch="false"
                android:layout_gravity="center_vertical"
                app:customMasterCountries="US,IN,HK,SG"/>

When the dropdown is selected, a toast message saying Found not to show search was shown. I think it was caused by https://github.com/hbb20/CountryCodePickerProject/blob/master/ccp/src/main/java/com/hbb20/CountryCodeDialog.java#L36 this line.

How can I avoid this? What is the purpose of this?

Fatal Exception: java.lang.IndexOutOfBoundsException

ava.util.ArrayList.throwIndexOutOfBoundsException (ArrayList.java:251)
java.util.ArrayList.get (ArrayList.java:304)
com.hbb20.CountryCodeAdapter$2.onClick (Unknown Source)
android.view.View.performClick (View.java:4084)
android.view.ViewDebug$3.run (ViewDebug.java:914)
android.os.Handler.handleCallback (Handler.java:630)
android.os.Handler.dispatchMessage (Handler.java:92)
android.os.Looper.loop (Looper.java:137)
android.app.ActivityThread.main (ActivityThread.java:4791)
java.lang.reflect.Method.invokeNative (Method.java)
java.lang.reflect.Method.invoke (Method.java:511)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:786)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:553)
dalvik.system.NativeStart.main (NativeStart.java)

Change textcolor on dialog

I have customizable app theme. User can set text color, background color and theme color of all activities. I want to customize dialog as well according to theme. How is it possible?

Can we implement a callback?

Would it be possible to get a callback when a country is selected, this way we can update our uI. E.G display a default example number...

can use a single method such as setCountryChangedListener.... which will implement a simple interface

how to hide country name code ?

i want to show only phone code. there is a method showflag(boolean) that hides the flag if pass false to this. Like wise i want to hide country name code so there left only phone code. so there should be option to hide country code. Please tell me how can i hide country code. Thanks

Float types not allowed

I have a custom widget in my app which has a custom attribute taking a float value, every things work fine but when i add your lib tpp gradle file app.build i got this error
Error:(101, 34) Float types not allowed (at 'textSize' with value '16.0').

Typo with single quote

Hello, i found extra &apos; in the text

screenshot_20161117-235837

Maybe we can use single quote escape \'
So the result can be done like this:

What do you think?

screenshot_20161117-235556

Error:(700) Attribute "textSize" already defined with incompatible format.

When I try to include CCP using gradle I'm getting this error!

after searching a lot I finally found solution:
but I cant change it in the library please update this in ur library

the field textSize is already used by some other library in my project when I edit that line and build the project it dint show any error but after getting library I cant inflate the CCP in the project pls fix this

App is crashing in Android 4.3.1

Caused by android.view.InflateException: Binary XML file line #63: Error inflating class com.hbb20.CountryCodePicker
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by android.view.InflateException: Binary XML file line #52: Error inflating class ImageView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by android.content.res.Resources$NotFoundException: File res/drawable/ic_arrow_drop_down_black_24dp.xml from drawable resource ID #0x7f020213
at android.content.res.Resources.loadDrawable(Resources.java:1957)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.(ImageView.java:120)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1021)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1080)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:877)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)
at android.content.res.Resources.loadDrawable(Resources.java:1954)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.(ImageView.java:120)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1021)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1080)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)

Mexico name in translation

Please change Méjico to México on spanish translation this is the right international grammar. For other languages just remove the ´ it shall be written "Mexico"

Query Clear Button

A "x" button with query edit text to erase entire query in a single click.

Custom font support

I am using different font in my project. I want ccp to be as same font.
Please add options.

Copyright needed

In order to properly use the library with the Apache license, I'd need a copyright line, for example: "Copyright (c) 2016 Harsh Bhakta"

Could you add this line and the copyright in the README.txt - I only found out that the library uses the Apache license 2.0 by looking at the sources.

Failed to resolve dependency issue

I am totally new to android (< a month) and I am building basic apps to improve. I have been trying to setup a way for the app to retrieve area code along with a user's phone number when I stumbled on your library.

However, I can't seem to add it to my project. I get the following error at the very first step:

Error:(25, 13) Failed to resolve: com.hbb20:ccp:1.7.1 Show in File
Show in Project Structure dialog

Thank you in advance for your input/help. My bad if this is an obvious question.

Set Text Size

I have a register form in which the EditText fields have TextSize of 22sp. But the CountryCodePicker TextSize is 18sp.
How do I set the CountryCodePicker TextSize to 22sp?

Thanks

Picker listener

I need to listen for country code picker changes. How to do it?

Inclusion of fast scroll or scroll

Hey there,

Thanks for the widget it doing great. I have a suggestion that will improve the user experience more convenient by including fast scroll like contacts page in android stock dialer.

Thanks.
Guru Karthi

Title & Placeholders in Strings

Is it possible to set our own strings?
By default it says "Select country", "search...", "result not found". But I want to have my own messages. Could it be possible to change them? Thanks.

Add localization

I want to add hebrew localization to this picker. How to do it?

Country not present

How do I add a country to the master list? My country along with a few others are not listed and I want to add them to my master list.

Problem in android 6.0

getting problem for only for android version 6.0,
error
android.view.InflateException: Binary XML file line #38: Binary XML file line #38: Error inflating class com.hbb20.CountryCodePicker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.