title: Complete mystery about getting the status bar TEXT to appear, when immersive
body: <h2>&quot;windowLightStatusBar&quot; not working?</h2>
  <hr />
  <p>Android app, 24+ only</p>
  <p><strong>One:</strong> Set theme to eliminate action bar ..</p>
  <pre><code> &lt;style name=&quot;FattieTheme&quot; parent=&quot;Theme.AppCompat.Light.NoActionBar&quot;&gt;
  </code></pre>
  <p>Action bar is gone.</p>
  <p><strong>Two:</strong> Just after <code>super.onCreate</code> , eliminate the bottom nav bar with exactly these three flags:</p>
  <pre><code>    getWindow().getDecorView().setSystemUiVisibility(
              View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
              View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
              View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
  </code></pre>
  <p><em>(Aside: after mammoth experimentation it appears to make no difference if you apply that to the window (as shown) or the root element of your xml layout.)</em></p>
  <p>Nav bar is gone.  (User can swipe it up; it goes away again after a few seconds.) All good.</p>
  <p>Status bar is <strong>still there</strong>. Status bar is a gray, white writing. All good.</p>
  <p>Your layout still begins <strong>just below</strong> the status bar. All good.</p>
  <p><strong>Three:</strong>  Add this flag</p>
  <pre><code>            View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
  </code></pre>
  <p>You now have four flags.</p>
  <p><em>(Aside: using <code>windowFullscreen</code> in Theme appears to do nothing. So add that flag.)</em></p>
  <p>Naturally set your layout xml to fitsSystemWindows false.</p>
  <p>Your layout now starts at the <strong>top of the glass</strong> - it's correctly <strong>behind the (gray) status bar</strong>. You can still see the (gray) status bar.  All good so far.</p>
  <p><strong>Four:</strong>  Theme, add</p>
  <pre><code>    &lt;item name=&quot;android:statusBarColor&quot;&gt;@color/white&lt;/item&gt;
  </code></pre>
  <p>it correctly goes pink.  <strong>The status text is white - you can read it.</strong></p>
  <p>so try</p>
  <pre><code>    &lt;item name=&quot;android:statusBarColor&quot;&gt;@android:color/transparent&lt;/item&gt;
  </code></pre>
  <p>bingo! Your app is behind the status text.</p>
  <h2>BUT...</h2>
  <p>the status <strong>text is white</strong>, you likely can't see it. (Unless your app is dark there.)</p>
  <h2>How to make the text dark ?!</h2>
  <p>This is supposed to do it:</p>
  <pre><code>    &lt;item name=&quot;android:windowLightStatusBar&quot;&gt;true&lt;/item&gt;
  </code></pre>
  <h2>But it does not!  It does nothing.</h2>
  <p>Does anyone know how the heck to solve this problem?</p>
  <p>Make the status bar text black.</p>
  <p>Every ordinary app out there, the browser etc, <strong>has black status bar text on white/clear</strong>. How to??</p>