title: Setting the value for custom Attribute android
body: <p>I have a custom attribute say like this : </p>
  
  <pre><code>&lt;attr name="colorPrimarySdk" format="color"/&gt;
  &lt;attr name="colorSecondarySdk" format="color"/&gt;
  &lt;attr name="colorAccentSdk" format="color"/&gt;
  </code></pre>
  
  <p>And I am using them in my styles like this:</p>
  
  <pre><code>&lt;style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
       &lt;item name="colorPrimary"&gt;?colorPrimarySdk&lt;/item&gt;
       &lt;item name="colorPrimaryDark"&gt;?colorSecondarySdk&lt;/item&gt;
       &lt;item name="colorAccent"&gt;?colorAccentSdk&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Now what I want is to set the value of my attributes dynamically from the code like, say :</p>
  
  <pre><code>colorPrimarySdk.value = myCustomColor
  </code></pre>
  
  <p>I have already tried using TypedValue and accessing the attribute itself.
  If anyone can help changing the value for my custom attribute, that would be a great help. Thanks in advance. </p>