title: Changing styles.xml file requires me to rebuild my project
body: <p>I have an android project, when I change my <strong>styles.xml</strong> file in Android Studio I need to rebuild my project every time.</p>
  
  <p>If I do not rebuild it, android studio deploys my app without <strong>visual changes</strong>.</p>
  
  <p>Is this a correct behaviour or there is some trick that I can use? </p>
  
  <p>Because rebuilding every time I change background colour of an item during theme tweaking is kinda slow and inefficient.</p>
  
  <p><strong>UPDATED:</strong></p>
  
  <p>My original styles.xml file:</p>
  
  <pre><code>&lt;resources xmlns:ns2="http://schemas.android.com/apk/res-auto"&gt;
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&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;/style&gt;
  
      &lt;style name="Theme.NoTitleMine" parent="AppTheme"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="Theme.MyDarkMaterialDesignBar" parent="Theme.MaterialComponents"&gt;
          &lt;!--button active style as well as edit text color (selected), also underline color--&gt;
          &lt;item name="colorPrimary"&gt;@color/redesign_highlight_color&lt;/item&gt;
          &lt;!--edit text activate, spinner click color--&gt;
          &lt;item name="colorSecondary"&gt;@color/redesign_highlight_color&lt;/item&gt;
          &lt;!--form background color--&gt;
          &lt;item name="android:windowBackground"&gt;@color/redesign_background&lt;/item&gt;
          &lt;item name="colorSurface"&gt;@color/redesign_background&lt;/item&gt;
          &lt;item name="disabledMaterialButtonColor"&gt;@color/redesign_disabled_button&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/MaterialButton&lt;/item&gt;
          &lt;item name="spinnerStyle"&gt;@style/DarkSpinnerStyle&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="Theme.MyDarkMaterialDesign" parent="Theme.MaterialComponents.NoActionBar"&gt;
          &lt;!--button active style as well as edit text color (selected), also underline color--&gt;
          &lt;item name="colorPrimary"&gt;@color/redesign_highlight_color&lt;/item&gt;
          &lt;!--edit text activate, spinner click color--&gt;
          &lt;item name="colorSecondary"&gt;@color/redesign_highlight_color&lt;/item&gt;
          &lt;!--form background color--&gt;
          &lt;item name="android:windowBackground"&gt;@color/redesign_background&lt;/item&gt;
          &lt;item name="disabledMaterialButtonColor"&gt;@color/redesign_disabled_button&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/MaterialButton&lt;/item&gt;
          &lt;item name="spinnerStyle"&gt;@style/DarkSpinnerStyle&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DarkSpinnerStyle" parent="Widget.AppCompat.Spinner"&gt;
          &lt;item name="android:popupBackground"&gt;@color/redesign_background&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MaterialButton" parent="Widget.MaterialComponents.Button"&gt;
          &lt;item name="backgroundTint"&gt;@color/material_button_style_selector&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="My.TextInputLayout.FilledBox.Padding" parent="Widget.MaterialComponents.TextInputLayout.FilledBox"&gt;
          &lt;item name="materialThemeOverlay"&gt;@style/MyThemeOverlayFilledPadding&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyThemeOverlayFilledPadding"&gt;
          &lt;item name="editTextStyle"&gt;@style/MyTextInputEditText_filledBox_padding&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyTextInputEditText_filledBox_padding" parent="@style/Widget.MaterialComponents.TextInputEditText.FilledBox"&gt;
          &lt;!-- left and right padding --&gt;
          &lt;item name="android:paddingStart" ns2:ignore="NewApi"&gt;2dp&lt;/item&gt;
          &lt;item name="android:paddingEnd" ns2:ignore="NewApi"&gt;2dp&lt;/item&gt;
          &lt;item name="android:paddingLeft"&gt;2dp&lt;/item&gt;
          &lt;item name="android:paddingRight"&gt;2dp&lt;/item&gt;
  
          &lt;!-- top and bottom padding --&gt;
          &lt;item name="android:paddingTop"&gt;24dp&lt;/item&gt;
          &lt;item name="android:paddingBottom"&gt;8dp&lt;/item&gt;
      &lt;/style&gt;
  
  
  
      &lt;style name="DesignAppTheme" parent="AppTheme"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/designGreyTextColor&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="android:windowBackground"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="android:colorForeground"&gt;@color/designGreyTextColor&lt;/item&gt;
          &lt;item name="android:colorForegroundInverse"&gt;@color/designBrightGreyTextColor&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/designBrightGreyTextColor&lt;/item&gt;
          &lt;item name="android:color"&gt;@color/designBrightGreyTextColor&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/designBrightGreyTextColor&lt;/item&gt;+
          &lt;item name="editTextStyle"&gt;@style/DesignEditText&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="colorControlActivated"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlHighlight"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlNormal"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="spinnerStyle"&gt;@style/MainThemeSpinner&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DesignEditText" parent="Widget.AppCompat.EditText"&gt;
          &lt;item name="android:textColor"&gt;@color/designBrightGreyTextColor&lt;/item&gt;
          &lt;item name="android:textColorHint"&gt;@color/designGreyTextColor&lt;/item&gt;
          &lt;item name="android:editTextColor"&gt;@color/designBrightGreyTextColor&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DesignTextViewBright" parent="android:Widget.TextView"&gt;
          &lt;item name="android:textColor"&gt;@color/designWhiteColor&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="DesignTextViewPale" parent="android:Widget.TextView"&gt;
          &lt;item name="android:textColor"&gt;@color/designPaleColor&lt;/item&gt;
      &lt;/style&gt;
  
  
  
      &lt;style name="DesignButtonNoBorder" parent="Widget.AppCompat.Button"&gt;
          &lt;item name="android:background"&gt;@drawable/round_button_noborder&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/designWhiteColor&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MainThemeSpinner" parent="Widget.AppCompat.Spinner"&gt;
          &lt;item name="android:popupBackground"&gt;@color/designColorPrimary&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MainThemeSpinnerUnderlined" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;item name="android:spinnerStyle"&gt;@style/holoSpinner&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="holoSpinner" parent="Widget.AppCompat.Spinner.Underlined"&gt;
          &lt;item name="android:textSize"&gt;16sp&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="android:popupBackground"&gt;@color/designColorPrimary&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="DesignButton" parent="Widget.AppCompat.Button"&gt;
          &lt;item name="android:background"&gt;@drawable/round_button&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/designWhiteColor&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="RedAppLightTheme" parent="AppTheme"&gt;
          &lt;item name="colorAccent"&gt;@color/redColor&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DesignAppLightTheme" parent="AppTheme"&gt;
          &lt;item name="colorPrimary"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="imageButtonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="colorControlActivated"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlHighlight"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlNormal"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="editTextStyle"&gt;@style/DesignEditTextLight&lt;/item&gt;
          &lt;item name="android:actionMenuTextColor"&gt;@color/designColorAccent&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="DesignEditTextLight" parent="Widget.AppCompat.EditText"&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
      &lt;/style&gt;
  
  
  
      &lt;style name="DesignAppBlackColorTabLightTheme" parent="AppTheme"&gt;
          &lt;item name="colorPrimary"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="imageButtonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="android:windowBackground"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="android:textColorSecondary"&gt;@color/designColorPrimaryGray&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/colorWhite&lt;/item&gt;
          &lt;item name="actionMenuTextColor"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="android:itemTextAppearance"&gt;@style/myCustomMenuTextApearance&lt;/item&gt;
  
      &lt;/style&gt;
  
      &lt;style name="myCustomMenuTextApearance" parent="@android:style/TextAppearance.Widget.IconMenu.Item"&gt;
          &lt;item name="android:textColor"&gt;@color/designColorPrimary&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="DesignAppLightTheme.NoTitleMine" parent="DesignAppLightTheme"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="imageButtonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DesignAppTheme.NoTitleMine" parent="DesignAppTheme"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="buttonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
          &lt;item name="imageButtonStyle"&gt;@style/DesignButtonNoBorder&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name="CustomDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert"&gt;
          &lt;!--buttons color--&gt;
          &lt;item name="colorAccent"&gt;@android:color/holo_orange_dark&lt;/item&gt;
          &lt;!--title and message color--&gt;
          &lt;item name="android:textColorPrimary"&gt;@android:color/white&lt;/item&gt;
          &lt;!--dialog background--&gt;
          &lt;item name="android:windowBackground"&gt;@drawable/background_dialog&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert"&gt;
          &lt;item name="android:textColor"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="colorPrimary"&gt;@color/designColorPrimary&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlActivated"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlHighlight"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="colorControlNormal"&gt;@color/designColorAccent&lt;/item&gt;
          &lt;item name="android:padding"&gt;3dp&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  
  </code></pre>