hbb20 / androidcountrypicker Goto Github PK
View Code? Open in Web Editor NEWAndroid Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.
License: MIT License
Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.
License: MIT License
is possible to add other picker with the cities of each country selected ?
Your CountryCodePickerProject already implements this in the function setCountryForNameCode(String countryNameCode).
Would be great to also have it here.
I have the country picker working in android compose by using the context.launchCountryPickerDialog { selectedCountry: CPCountry? ->
method and it works well thank you. However the black text on black dialog background is not so flash so i'm wanting to change the text color but not sure how i go about that in Android compose as most instructions show modifying the xml which compose doesnt use.
Is there a simple way or instructions i havent found for doing it in Jetpack compose ?
thanks
Hello,
I like your library, and I want to use it, but I struggle on how to display a different flag than R.drawable.ic_flag_black
.
I tried to look on how to get the emoji flag, but the issue is also that the getFlag(alpha2Code: String)
expect an Int and therefore I don't know how to return the correct flag based on the user selection..
any help is welcome.
There are use cases of language data for country.
A way to easily pass custom layout for CPView.
Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
As I read, I need to create a custom XML for dialog layout But actually need to just change the Title color of the Dialog. Is there any property to override or set?
I tried adding your library to my Android project:
implementation("com.hbb20:android-country-picker:0.0.6")
When I run the app, it overrides the activity style & show Toolbar
by default!!
I am using style with this theme Theme.MaterialComponents.Light.NoActionBar
.
This is the only reason I am not using this library ๐
Cannot access class 'com.hbb20.contrypicker.flagprovider.CPFlagProvider'. Check your module classpath for missing or conflicting dependencies
When I add the library, my app name changes to "CountryPicker".
I use lib version 0.0.7
How can this be fixed?
picker view only looks good in light mode right now, can you add change the darkmode colors or option for us without creating any custom views?
Okay I just realized, so the showFullScreen = false
doesn't make the dialog WRAP_CONTENT it's still very large and going until the bottom of the screen even if I have fews countries..
Support non-iso countries out of box
I want to change the position and size of elements in cp_country_row.xml
How can i do this?
Easy way to use different row layout
For example, USA is common term for United States of America but that is not filtered if you type USA
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.