title: Set Toolbar logo in XML
body: <p>Is it possible to set Toolbar logo in xml? I have tried this so far:</p>
  
  <p>1.</p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      ...
      android:logo="@drawable/my_logo"
      /&gt;
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      ...
      app:logo="@drawable/my_logo"
      /&gt;
  </code></pre>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>I'm using toolbar as an actionbar in my AppCompatActivity:</p>
  
  <pre><code>setSupportActionBar(findViewById(R.id.toolbar));
  </code></pre>
  
  <p>I'm able to set logo from code:</p>
  
  <pre><code>((Toolbar) findViewById(R.id.toolbar)).setLogo(R.drawable.my_logo);
  </code></pre>
  
  <p>But I'd like to set logo either from layout XML or from Style/Theme XML.</p>