我为GradientDrawable提供了以下xml.如何以编程方式更改角度?
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:type="linear"
android:angle="45"
android:startColor="#FF0000"
android:endColor="#00FF00" />
</shape>
Run Code Online (Sandbox Code Playgroud) android ×1