title: I need to change the stroke color to a user defined color. Nothing to do with the state
body: <p>I need to change the stroke color from the app.  The user is able to change the background color so I need to also let them change the stroke (outline) of the button. As its is already set in the drawable (sample below) I have not found a way to change this. Seems like all of the other questions like this just said to use the XML file.... but that doesnt let me make it dynamic.  Thank you for any help!</p>
  
  <p><strong>I need to change the stroke color to a user defined color.  Nothing to do with the state.</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
  
      &lt;solid android:color="#ffffffff"/&gt;    
        &lt;stroke
                  android:width="3dp"
                  android:color="@color/Dim_Gray" /&gt;  &lt;&lt;&lt;&lt;--- This is what I need to change
  
  
      &lt;padding android:left="10dp"
               android:top="10dp"
               android:right="10dp"
               android:bottom="10dp"
               /&gt; 
  
      &lt;corners android:bottomRightRadius="12dp" android:bottomLeftRadius="12dp" 
       android:topLeftRadius="12dp" android:topRightRadius="12dp"/&gt; 
  
  &lt;/shape&gt;
  </code></pre>