Giter Site home page Giter Site logo

Support night mode? about android-phone-field HOT 6 OPEN

ialokim avatar ialokim commented on September 26, 2024
Support night mode?

from android-phone-field.

Comments (6)

hbo003 avatar hbo003 commented on September 26, 2024 3

Hello, the issue is resolved
cannot add textColor and/or change the color of number phone in xml inner ialokim phonefield, but you can change the color from java side when set the color of edit text value for phone edit text.
The solution using java code:
PhoneEditText etPhoneNumber;
etPhoneNumber.getEditText().setTextColor(color);
solved!
Regards.

from android-phone-field.

ialokim avatar ialokim commented on September 26, 2024 2

I'm glad you've found a solution, but I'll keep this open as it should be possible to change the textcolor in the xml layout file eventually, too.

from android-phone-field.

ialokim avatar ialokim commented on September 26, 2024

Thanks for opening the issue. I guess when designing the library I didn't pay attention to dark themes, but it should be quite easy to add. Perhaps changing some color codes to theme attributes would be sufficient.

I don't have the time to look into it currently, but feel free to try it and open a PR!

from android-phone-field.

hbo003 avatar hbo003 commented on September 26, 2024

Thanks for opening the issue. I guess when designing the library I didn't pay attention to dark themes, but it should be quite easy to add. Perhaps changing some color codes to theme attributes would be sufficient.

I don't have the time to look into it currently, but feel free to try it and open a PR!

Hello,
Why the textColor( in xml )not supported in this library?

from android-phone-field.

ialokim avatar ialokim commented on September 26, 2024

Why the textColor( in xml )not supported in this library?

Most probably I didn't consider the use-case of changing the text color. Feel free to correct this and submit an PR!

from android-phone-field.

kareemzok avatar kareemzok commented on September 26, 2024

Hello, the issue is resolved
cannot add textColor and/or change the color of number phone in xml inner ialokim phonefield, but you can change the color from java side when set the color of edit text value for phone edit text.
The solution using java code:
PhoneEditText etPhoneNumber;
etPhoneNumber.getEditText().setTextColor(color);
solved!
Regards.

That's correct thanks @hbo003

from android-phone-field.

Related Issues (5)

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.