title: I want to change title bar text color in material Components theme. Any help will be greatly appreciated
body: <p>I tried set title color but it is deprecated. I tried to change color by using</p>
  <pre><code>  &lt;style name=&quot;MyTheme&quot; parent=&quot;@android:style/Theme.Holo.Light&quot;&gt;
      &lt;item name=&quot;android:actionBarStyle&quot;&gt;@style/MyTheme.ActionBarStyle&lt;/item&gt;
    &lt;/style&gt;
  
    &lt;style name=&quot;MyTheme.ActionBarStyle&quot; parent=&quot;@android:style/Widget.Holo.Light.ActionBar&quot;&gt;
      &lt;item name=&quot;android:titleTextStyle&quot;&gt;@style/MyTheme.ActionBar.TitleTextStyle&lt;/item&gt;
    &lt;/style&gt;
  
    &lt;style name=&quot;MyTheme.ActionBar.TitleTextStyle&quot; parent=&quot;@android:style/TextAppearance.Holo.Widget.ActionBar.Title&quot;&gt;
      &lt;item name=&quot;android:textColor&quot;&gt;@color/red&lt;/item&gt;
    &lt;/style&gt;
  </code></pre>
  <p>as mentioned here: <a href="https://stackoverflow.com/questions/5861661/actionbar-text-color">ActionBar text color</a> but the whole Titlebar color changes to white while doing it.
  All I want to do is set my Black Title bar text color to white.
  I also tried this solution here: <a href="https://stackoverflow.com/questions/23801252/change-color-title-bar">Change color title bar</a> but I am using the MaterialComponents theme and using AppCompactThemes makes my app crash.</p>