Comments (18)
Please use v0.0.3. There are something I need to fix for flag provider
from androidcountrypicker.
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.
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.
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.
It's coming from here
cpFlagProvider: [ERROR : com.hbb20.contrypicker.flagprovider.CPFlagProvider]?,
from androidcountrypicker.
I will look into this as soon as I get some time. If it's critical, please contact [email protected]
from androidcountrypicker.
Thanks sir !
from androidcountrypicker.
So for now, I can't use the flags ? so dialog is showing with only text..
from androidcountrypicker.
0.0.3 should work just fine with default emoji flags as shown in samples of documentation.
from androidcountrypicker.
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.
Thanks , where can I see the languages your library support?
from androidcountrypicker.
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?
from androidcountrypicker.
By the way can you add a property for the country.language ? like English,French,etc..
Thanks a lot !
from androidcountrypicker.
No worries, where can I find the strings to override these ?
from androidcountrypicker.
Can you please explain what is your use case with country.language?
from androidcountrypicker.
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.
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.
@Dave181295 , v0.0.6 has wrapping functionality. Let me know if that works for you.
from androidcountrypicker.
Related Issues (20)
- Custom Row Layout
- Publish custom flag provider
- Goes compact if search result is short
- add GIF of running app will be more helpful HOT 2
- show it as Dialoge with search capability HOT 2
- add auto detected country to the top
- Country flag HOT 5
- Non material theme not supported? HOT 2
- Additional Search keywords HOT 1
- Country language data HOT 10
- Picker Dialog is not WRAP_CONTENT HOT 1
- Set selected country programmatically via alpha2 HOT 1
- Adding library messes up with the activity style & show Toolbar by default HOT 10
- country picker with cities HOT 1
- Good afternoon! How can I override cp_country_row.xml ?
- How do I change the Dialog title color HOT 2
- Adding a library changes the name of my app HOT 2
- text color via android compose HOT 2
- dialog dark mode support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidcountrypicker.