Git Product home page Git Product logo

hbb20 / androidcountrypicker Goto Github PK

View Code? Open in Web Editor NEW
92.0 1.0 26.0 4.07 MB

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

Kotlin 99.73% Java 0.27%
country-picker android library country-spinner country-selector android-library picker kotlin country-flags country-information

androidcountrypicker's People

Contributors

hbb20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

androidcountrypicker's Issues

text color via android compose

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

Country flag

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.

CPViewHelper

A way to easily pass custom layout for CPView.

Non material theme not supported?

Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).

How do I change the Dialog title color

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?

Adding library messes up with the activity style & show Toolbar by default

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 ๐Ÿ˜ž

dialog dark mode support

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?

Picker Dialog is not WRAP_CONTENT

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..

Additional Search keywords

For example, USA is common term for United States of America but that is not filtered if you type USA

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.