AndroidPub
Published in

AndroidPub

Time to have a DARK Side

Photo by Andrew Hughes on Unsplash
  • Right-click on your ‘res’ folder and select ‘New -> Android Resource File’
  • Put ‘colors’ as your file name (I know you already have a colors file.)
  • Select ‘Night Mode’ from “Available Qualifiers” list
  • Click on the ‘>>’ button
  • Select ‘Night mode’ as ‘Night’ from the spinner.
  • Click “OK”
Night mode colors creation

values/colors.xml

<color name="backgroundColor">#ffffff</color>
<color name="textColor">#000000</color>
<color name="backgroundColor">#000000</color>
<color name="textColor">#ffffff</color>
Light Version
Here is the Dark one

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store