Ho seguito xml per GradientDrawable. Come posso cambiare l'angolo programmaticamente?GradientDrawable change angle a livello di programmazione
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:type="linear"
android:angle="45"
android:startColor="#FF0000"
android:endColor="#00FF00" />
</shape>
GradientDrawable ha un setOrientation (GradientDrawable.Orientation orientamento) Non so se questo sarebbe adatto alle tue esigenze? –