title: How to get Toolbar background color programmatically?
body: <p>I use v7 toolbars (android.support.v7.widget.Toolbar) throughout my application. There is an easy method for setting the background color:</p>
  
  <pre><code>mToolbar.setBackgroundColor(Color.BLACK); // works!
  </code></pre>
  
  <p>But there is no method for getting the background color:</p>
  
  <pre><code>mToolbar.getBackgroundColor(); // Cannot Resolve Method
  </code></pre>
  
  <p>I want to get the background color of the toolbar so I can check if the toolbar is white. If it is white, I want to change the color of my menu icons, which are by default white, to black.</p>
  
  <p>What would be the easiest way of getting the toolbar background color, if we can assume I've set it programmatically with setBackgroundColor()?</p>