title: Change Actionbar color and its text alignment When navigating to next activity
body: <p>I am want to change the color of ActionBar in my Android app.</p>
  
  <p>If I click on the button to go to the next activity, I want to change Actionbar color too, but it shows "Unfortunately, app has stopped".</p>
  
  <p>Below is my code, let me know if anything wrong in it..?</p>
  
  <p>My Code:</p>
  
  <p>Manifests code:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@drawable/app_icon_152"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@android:style/Theme.Light"&gt;
      &lt;activity
          android:name=".WelcomeScreen"
          android:theme="@style/SplashTheme"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".SignIn"
          android:label="Sign In"
          android:theme="@style/MyTheme"
          android:parentActivityName=".WelcomeScreen"&gt;&lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>values/theme.xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;style name="MyTheme" parent="@android:style/Theme.Holo.Light"&gt;
      &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
      &lt;item name="android:titleTextStyle"&gt;@style/TitleBarTextColor&lt;/item&gt;
      &lt;item name="android:background"&gt;#3366CC&lt;/item&gt;
      &lt;item name="android:icon"&gt;@drawable/backarrow_white&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="TitleBarTextColor"     parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"&gt;
      &lt;item name="android:textColor"&gt;#ffffff&lt;/item&gt;
  &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>values/styles.xml code:</p>
  
  <pre><code>&lt;resources&gt;
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@drawable/splashscreen&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:windowFullscreen"&gt;false&lt;/item&gt;
  &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Any help would be much appreciated. Thanks in advance.</p>