title: How to change status bar icon color in Android?
body: <p>I want to change status bar icons color from white to black. I try below code but I can't make it. Could you help me please?</p>
  
  <p>Activity Code: </p>
  
  <pre><code>public static void setLightStatusBar(View view,Activity activity){
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
  
          int flags = view.getSystemUiVisibility();
          flags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
          view.setSystemUiVisibility(flags);
          activity.getWindow().setStatusBarColor(Color.WHITE);
      }
  }
  </code></pre>
  
  <p>style.xml code: </p>
  
  <pre><code>&lt;item name="android:windowLightStatusBar"&gt;true&lt;/item&gt;
  </code></pre>