This is library for showing all countries , anyone can add it to their porject in simple way
SET UP
Just add the library dependency:
compile 'com.ananth10.library:country-picker:1.3.5'
Usage
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_select_country);
mCountryPicker = CountryPickerFragment.newInstance("Select Country");
mPickCountryButton.setOnClickListener(new View.OnClickListener() {
@Override public void onClick(View v) {
mCountryPicker.show(getSupportFragmentManager(), "COUNTRY_PICKER");
}
});
getUserCountryInfo();
}
```
Sample
https://github.com/ananth10/country-picker