Home > OS >  Dark theme not showing table values in my Android app
Dark theme not showing table values in my Android app

Time:12-19

My Android app works well when the device is in light mode but when changed the dark mode, the table values no longer show.

What may be wrong please?

CodePudding user response:

Can you please be more specific (i.e. paste some code, using XML Views or Compose, etc)

Could it be that the colour for the text in the tables is set to black and background is also black in dark mode? You may need to specify a colour for Text different than black.

Check this post in case it helps: Android - Dark mode issue: black text on dark background

CodePudding user response:

I've discovered the issue. I used custom styling in my table layout and set the background color of the the custom table border to white. Hence, it was always white

I have now resolved the issue by setting the color of the border to a "Theme" resource (sth like that) where I set it's value to black for light mode and white for dark mode

  • Related