Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How we can set default Country in my app any idea ?? #97

Open
visionfaysal opened this issue Jun 17, 2020 · 3 comments
Open

How we can set default Country in my app any idea ?? #97

visionfaysal opened this issue Jun 17, 2020 · 3 comments
Assignees
Labels

Comments

@visionfaysal
Copy link

i have issue when app is run US +1 country show automatically how i can remove it and set my own selected country as a default ?

@mukeshsolanki
Copy link
Owner

can you provide some more details? It does not set anything by default. A sample app should help debug the issue

@codex-developers
Copy link

There is no default selection. Its simply showing the list of countries.
If you want to get the country object you want (for ex. India)

  private val picker = CountryPicker.Builder()
        .with(this)
        .listener(this)
        .sortBy(SORT_BY_NAME)
        .build()

then:

val country = picker.getCountryByISO("IN")

and you get the country you want

@dennisrufigill
Copy link

Hello, how can I show one country on the top?
Suppose my requirement is, I need to show the UAE flag at the top of the list. Even before Afghanistan.
Is it possible with the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants