title: Android: How to set stroke color for vector drawable programmatically
body: <p>I am getting into a trouble with VectorDrawable in Android.
  I have a vector drawable file (.xml) and I want to draw it on bitmap. I managed to load this file and draw it on bitmap. I can change its fill color but the problem is that I cannot change its stroke and color. </p>
  
  <p>Any helps would be appreciated!!!</p>
  
  <p>Thank you!</p>
  
  <p>Here is the drawable file:</p>
  
  <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android"
      android:width="312dp"
      android:height="312dp"
      android:viewportWidth="312.7"
      android:viewportHeight="312.699"&gt;
  &lt;path
      android:pathData="M306.35,266.34c0,22.09 -17.91,40.01 -40,40.01L46.35,306.35c-22.09,0 -40,-17.92 -40,-40.01v-219.99c0,-22.11 17.92,-40 40,-40h220c22.09,0 40,17.9 40,40L306.35,266.34z"
      android:strokeWidth="5"
      android:fillColor="@color/transparent"
      android:strokeColor="#231F20"/&gt;&lt;/vector&gt;
  </code></pre>
  
  <p>Here is the way I load and fill the shape with blue color:</p>
  
  <pre><code>Drawable drawable = getResources().getDrawable(R.drawable.graph_rounded_rectangle);
          drawable.setBounds(0, 0, width, height);
          drawable.setColorFilter(new PorterDuffColorFilter(getResources().getColor(R.color.blue), PorterDuff.Mode.MULTIPLY));
          drawable.draw(canvas);
  </code></pre>