Open OmarAhmed193 opened 6 years ago
You can change country list by inheritance as following:
public class PhoneField extends PhoneInputLayout { public PhoneField(Context context, AttributeSet attrs) { super(context, attrs); int skipCounter = 0; int countrySize = Countries.COUNTRIES.size(); for(int i=0;i<countrySize;i++) { Countries.COUNTRIES.remove(0); } Countries.COUNTRIES.add(new Country("dk", "Denmark (Danmark)", 45)); Countries.COUNTRIES.add(new Country("se", "Sweden (Sverige)", 46)); } }
Good Job!
Is there's a way to limit the country listing to specific countries?