CountryCodePicker will help users to
- Search and select Country
- Get selected country's name,code,currency and dial code (Sri Lanka,LK,LKR,+94)
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
CountryPicker picker = new CountryPicker();
transaction.replace(R.id.home, picker);
transaction.commit();
CountryPicker picker = CountryPicker.newInstance("SelectCountry");
picker.show(getSupportFragmentManager(), "COUNTRY_CODE_PICKER");
picker.setListener(new CountryPickerListener() {
@Override
public void onSelectCountry(String name, String code, String dialCode) {
}
});
CountryCodePicker is released under the Apache License Version 2.0.