title: Change value of item in style.xml programmatically android
body: <p>I am new to android development and currently making a calculator app. In it, my activity has number of buttons on which I apply the same style. The structure of code is something like as below</p>
  
  <p><strong>layout.xml</strong>
  <code>
      &lt;LinearLayout&gt;
          &lt;Button
              android:text="Button 1"
              style="@style/styleName"
              &gt;
          &lt;Button
              android:text="Button 2"
              style="@style/styleName"
              &gt;
          &lt;Button
              android:text="Button 3"
              style="@style/styleName"
              &gt;
      &lt;/LinearLayout&gt;
  </code>
  <strong>style.xml</strong></p>
  
  <p><code>&lt;resources&gt;
          &lt;style name="styleName"&gt;
              &lt;item name="attribute1"&gt;attribute1Value&lt;/item&gt;
              &lt;item name="attribute2"&gt;attribute2Value&lt;/item&gt;
              &lt;item name="attribute3"&gt;attribute3Value&lt;/item&gt;
              &lt;item name="android:background"&gt;BackgroundValue&lt;/item&gt;
          &lt;/style&gt;
      &lt;/resources&gt;
  </code></p>
  
  <p>Now I want to provide a feature to user in which when he/she selects a particular theme from the setting, the background of all buttons will change. This can be achieved if I can change the value of background color  in styleName. I am not sure how to achieve this. I look around the web and didn't find any satisfying answer for achieving the same.</p>