title: How to get the background colour of a View
body: <p>How can i get the current colour of a view, if its a solid colour</p>
  
  <pre><code>                int color = Color.TRANSPARENT;
              Drawable background = rootLayer.getBackground();
              if (background instanceof ColorDrawable)
                  color = ((ColorDrawable) background).getColor();
  </code></pre>
  
  <p>This if statement never returns tru</p>