Git Product home page Git Product logo

Comments (18)

hbb20 avatar hbb20 commented on May 30, 2024 1

Please use v0.0.3. There are something I need to fix for flag provider

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024 1

For now you can use emoji flags and if you have your own flag images then you can also pass that. I am in process of providing other flag packs to set different flag images (as different library) without increasing default library size.

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024 1

You are passing 6th param (which is for flag provider) as null that tells to remove all flags.

Either pass CPRowConfig.defaultFlagProvider (which is default emoji flag provider) as 6th argument
or ideally pass only named argument of params that you want to override. Library will provider defaults for other.

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024 1

These two files contains all the strings resources. You can override as you need.
https://github.com/hbb20/AndroidCountryPicker/tree/develop/countrypicker/src/main/res/values-en

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

It's coming from here

cpFlagProvider: [ERROR : com.hbb20.contrypicker.flagprovider.CPFlagProvider]?,

from androidcountrypicker.

github-actions avatar github-actions commented on May 30, 2024

I will look into this as soon as I get some time. If it's critical, please contact [email protected]

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

Thanks sir !

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

So for now, I can't use the flags ? so dialog is showing with only text..

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024

0.0.3 should work just fine with default emoji flags as shown in samples of documentation.

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

Hmm...
I'm trying

requireContext().launchCountryPickerDialog( customMasterCountries = "HE,RU,EN,FR", "", CPFileReader, false, null, null, { country -> country.name }, null, null, null, CPDialogConfig.defaultCPDialogViewIds, allowSearch = false, allowClearSelection = false, showTitle = true, showFullScreen = false, ) { cpCountry ->

But there is no flags friend..

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

Thanks , where can I see the languages your library support?

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024

This library only support two languages as of now. English and Gujarati. I have other translations available but need some help to get other message translations. Are you in need of some specific language?
image

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

By the way can you add a property for the country.language ? like English,French,etc..
Thanks a lot !

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

No worries, where can I find the strings to override these ?

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024

Can you please explain what is your use case with country.language?

from androidcountrypicker.

Dave181295 avatar Dave181295 commented on May 30, 2024

I'm using your library for my traduction's app. so it's more important to me to get the language + the country but that not really a big problem so all is okay :)

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024

yeah.. I want to make it wrap content but haven't finalized when should it be wrap_content. Hopefully that will be fixed soon.

from androidcountrypicker.

hbb20 avatar hbb20 commented on May 30, 2024

@Dave181295 , v0.0.6 has wrapping functionality. Let me know if that works for you.

from androidcountrypicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.