Android-country-picker
Android-country-picker copied to clipboard
[DEPRECATED] This library is not maintained anymore. No more development will be done.
I want name of the country user selected.
Added Search For Countries Usage private fun showCountryDialog() { val countryPicker = CountryPickerDialog(this, CountryPickerCallbacks { country, flagResId -> countryPickerTv.text = country?.dialingCode.toString() }) countryPicker.show() val window: Window? = countryPicker.window window?.setLayout(MATCH_PARENT, MATCH_PARENT)...
java.lang.NoSuchFieldError: No field country_picker_listview of type I in class Lcom/heetch/countrypicker/R$id; or its superclasses (declaration of 'com.heetch.countrypicker.R$id' appears in /data/app/tingtel.android-2/base.apk) at com.heetch.countrypicker.CountryPickerDialog.onCreate(CountryPickerDialog.java:70) at android.app.Dialog.dispatchOnCreate(Dialog.java:427) at android.app.Dialog.show(Dialog.java:322) at tingtel.android.fragments.NetworkFragment$4.onClick(NetworkFragment.java:121) countryPicker.show();
Previously I had PR'ed a version with round flags, but these were resource files which made the library size bigger. This PR removes those files and adds a programmatic way...
Is there a reason as to why there is a transparent gap in the png's ? Just wondering.