I have the following code that will rotate a drawable by a set amount of degrees.
public Drawable rotateDrawable(float angle, Context context) {
Kotlin code for BitmapDrawable:
BitmapDrawable
var bitmapDrawable = BitmapDrawable(resources,bitmapObj)