Skip to content

Texts in the editText fields are not visible in dark theme #245

Open

Description

@megamendhie

The texts in the text input fields turn white when the phone is in dark mode. They blends with the field's background and become difficult to see.

Activity

  1. jeremiahAI commented on Dec 18, 2020

    @jeremiahAI
    Contributor

    HI @megamendhie
    Thanks for bringing this up. Please share sample screenshots of the affected screens

  2. megamendhie commented on Dec 18, 2020

    @megamendhie
    Author

    @jeremiahAI Here's it. There are numbers there but they are all white so can't be seen.

    scrnsht

  3. way-nu commented on Apr 4, 2021

    @way-nu

    I'm facing the same issue. Someone please provide with a solution to this problem.

  4. jeremiahAI commented on Apr 4, 2021

    @jeremiahAI
    Contributor

    Thanks, @venusaim23, please can you share what android version you're experiencing this on?

  5. way-nu commented on Apr 5, 2021

    @way-nu

    @jeremiahAI I have android 9 on my phone. The min SDK of my app is 23 and target 30

  6. ibrajix commented on Apr 12, 2021

    @ibrajix

    Same issue.
    On dark mode, text cant be seen on EditText field. (Its white on a white editText Field).

    This is so because my app doesn't implement dark mode. (Using MaterialTheme.Light)

    Tried customizing the the theme by setting
    android:textColor to black...Didnt work

  7. brianssendagire commented on Aug 17, 2021

    @brianssendagire

    Is there a way to pass a Boolean to prevent Dark theme from changing the display? If Boolean is false, don't change the in-app theme to black. This is because my Toolbar text and EditTexts become unseen because of Dark theme, and my application only changes theme when the user wants to.

  8. Wilsona4 commented on Sep 13, 2021

    @Wilsona4

    I am facing same issue.... And also the Do you want to continue? payment prompt "YES" and "NO" texts are white in the light theme.....

  9. mahevstark commented on Apr 8, 2022

    @mahevstark

    @Wilsona4 did you fix this issue? how was it fixed? please let me know

  10. Ernest-Sakala commented on Jun 2, 2022

    @Ernest-Sakala

    I am also facing the same issue did anyone manage to resolve this

  11. praveennachi60 commented on Jun 11, 2022

    @praveennachi60

    @Ernest-Sakala did you find the solution for this?

  12. mtafakori1993 commented on Jul 24, 2022

    @mtafakori1993

    Edit: android/app/src/main/res/values/styles.xml

    replace this line:

    <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> with this: <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions