小编And*_*Dev的帖子

GradientDrawable以编程方式更改角度

我为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

8
推荐指数
1
解决办法
2894
查看次数

标签 统计

android ×1