Change android button drawable icon color programmatically : <p>I want to change my icon color from my button programmatically...</p>

<p>On my xml, i have:</p>

<pre><code>            android:drawableTint="@color/colorPrimary"
            android:drawableTop="@drawable/ic_car_black_24dp"
</code></pre>

<p>To set the icon and set the icon color... But i want to change the icon color from my java side...</p>

<p>Can someone help me?</p>

<pre><code>        &lt;android.support.v7.widget.AppCompatButton
            android:id="@+id/bt_search_vehicle_car"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/eight_density_pixel"
            android:layout_weight="1"
            android:background="@drawable/background_rounded_blue_border"
            android:drawableTint="@color/colorPrimary"
            android:drawableTop="@drawable/ic_car_black_24dp"
            android:padding="@dimen/eight_density_pixel"
            android:text="Carros"
            android:textAllCaps="false"
            android:textColor="@color/colorPrimary" /&gt;
</code></pre>
