title: Can't disable Night Mode in my application even with values-night
body: <p>The problem is that when I look at the preview on the software everything is fine, but when I run the app on my phone everywhere is used the color white it turn dark (drawables and backgrounds). I haven't used an alpha on the drawables, only <code>android:color=&quot;@color/white&quot;</code>.</p>
  <p>The source of the problem is that my phone had the Night Mode enable, so it automatically changed the colors in the app.</p>
  <p>To try to disable the Night Mode I created a folder <code>values-night</code> and copied my @styles and @colors to match the Day and Night Mode.</p>
  <p>styles.xml (night)</p>
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
          &lt;style name=&quot;MyTheme&quot; parent=&quot;Theme.AppCompat.Light.NoActionBar&quot;&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name=&quot;android:windowBackground&quot;&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name=&quot;colorPrimary&quot;&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryDark&quot;&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name=&quot;colorAccent&quot;&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  <p>colors.xml (night)</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;color name=&quot;colorPrimary&quot;&gt;#1d1d1d&lt;/color&gt;
      &lt;color name=&quot;colorPrimaryDark&quot;&gt;#1d1d1d&lt;/color&gt;
      &lt;color name=&quot;colorAccent&quot;&gt;#F8F8F8&lt;/color&gt;
      &lt;color name=&quot;textColor&quot;&gt;#1d1d1d&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>In my MainActivity.xml</p>
  <pre><code>&lt;android.support.constraint.ConstraintLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:orientation=&quot;vertical&quot;
      android:background=&quot;@color/colorAccent&quot;
      android:theme=&quot;@style/MyTheme&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.MainActivity&quot;&gt;
  </code></pre>
  <p>In my Manifest.xml</p>
  <pre><code> android:theme=&quot;@style/MyTheme&quot;
  </code></pre>
  <p>I checked the answers on <a href="https://stackoverflow.com/questions/57175226/how-to-disable-night-mode-in-my-application-even-if-night-mode-is-enable-in-andr/57175501">How to disable night mode in my application even if night mode is enable in android 9.0 (pie)?</a> and <a href="https://stackoverflow.com/questions/56573786/dark-theme-in-android-9-0-changes-my-app-layouts-ugly">Dark Theme in android 9.0 changes my app layouts ugly</a> and did the <code>values-night</code> folder, but it didn't resolve the problem.</p>
  <p>But the problem persist, any idea what am I missing here? Thanks in advance.</p>