title: Set navigationBar color on Android Lollipop with Full screen activity
body: <p>Is there a way to set the navigationbar color in a fullscreen activity?</p>
  
  <p><pre><code>if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
      getWindow().setNavigationBarColor(getResources().getColor(R.color.Theme_color));</pre></code></p>
  
  <p>And this line in my theme-style:</p>
  
  <pre><code>&lt;item name="android:navigationBarColor" tools:targetApi="21"&gt;#E64A19&lt;/item&gt;
  </code></pre>
  
  <p>Both resulting in the same transparant navbar above my activities layout...</p>
  
  <p>Code:</p>
  
  <p>Acitivity :</p>
  
  <pre><code>@Override
              protected void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  //Remove title bar
                  this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
                  //Remove notification bar
                  this.getWindow()
      .setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
                  setContentView(R.layout.activity_account);
  
                  if (getResources().getBoolean(R.bool.portrait_only)) {
                      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
                  }
  
                  if (android.os.Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {
                      getWindow()
          .setNavigationBarColor(getResources().getColor(R.color.Theme_color));
                  }
  
  
                  //other code ... (irrelevant)
  </code></pre>
  
  <p>Theme:</p>
  
  <pre><code>&lt;style name="FullscreenTheme" parent="android:Theme.NoTitleBar"&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
          &lt;item name="android:windowBackground"&gt;@null&lt;/item&gt;
          &lt;item name="metaButtonBarStyle"&gt;@style/ButtonBar&lt;/item&gt;
          &lt;item name="metaButtonBarButtonStyle"&gt;@style/ButtonBarButton&lt;/item&gt;
          &lt;item name="android:navigationBarColor" tools:targetApi="21"&gt;#E64A19&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>The result is a black navigationbar. But I want a orange (#E64A19) navigation-bar.</p>
  
  <p>Result:
  <img src="https://i.stack.imgur.com/8Tvri.png" alt="old result set navbar-color"></p>