title: Change the color of toolbar item icon
body: <p>I have a toolbar in its menu place i have placed  a default icon</p>
  
  <p><img src="https://i.imgur.com/kKhS4rq.png" alt="deafult icon"></p>
  
  <p>placed there 
  and when the user clicks it i want to change the color and fill it with to black heart</p>
  
  <p><img src="https://i.imgur.com/AsyZAP5.png" alt="change icon"></p>
  
  <p>I have tried below method but didn't worked</p>
  
  <p>This is my java code</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
  
      this.menu = menu;
      if (menu != null) {
          MenuItem item = menu.findItem(R.id.favouriteProperty);
          if (item != null) {
              item.setIcon(R.drawable.ic_favorite);
          }
      }
  
      // Inflate the menu; this adds items to the action bar if it is 
  present.
      getMenuInflater().inflate(R.menu.menu_scrolling, menu);
      return true;
  }
  </code></pre>
  
  <p>This is my xml code</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  tools:context="com.example.myapplication.ScrollingActivity"&gt;
  
  &lt;item android:id="@+id/favouriteProperty"
  android:title="Edit Profile"
  android:orderInCategory="100"
  android:icon="@drawable/ic_heart"
      app:showAsAction="always"/&gt;
  
  &lt;item android:id="@+id/shareProperty"
      android:title="Edit Profile"
      android:orderInCategory="100"
      android:icon="@drawable/ic_share"
      app:showAsAction="always"/&gt;
  
  &lt;/menu&gt;
  </code></pre>