chathudan / Countrycodepicker
Licence: apache-2.0
Android CountryCodePicker will help users to search and select a country and retrieve selected country's country name,code,currency and dial code (Sri Lanka,LK,LKR,+94)
Stars: ✭ 191
Programming Languages
java
68154 projects - #9 most used programming language
Labels
CountryCodePicker
CountryCodePicker will help users to
- Search and select Country
- Get selected country's name,code,currency and dial code (Sri Lanka,LK,LKR,+94)
Download the CountryCodePicker Example APK
Usage
CountryCodePicker on own layout
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
CountryPicker picker = new CountryPicker();
transaction.replace(R.id.home, picker);
transaction.commit();
CountryCodePicker as Android Dialog
CountryPicker picker = CountryPicker.newInstance("SelectCountry");
picker.show(getSupportFragmentManager(), "COUNTRY_CODE_PICKER");
CountryPickerListener to get selected country's details
picker.setListener(new CountryPickerListener() {
@Override
public void onSelectCountry(String name, String code, String dialCode) {
}
});
License
CountryCodePicker is released under the Apache License Version 2.0.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].