I have a gradient background with code :
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Login"
android:background="@drawable/sel_btn_background"
android:gravity="center"
android:textSize="16sp"
android:layout_marginTop="40dp"
android:textColor="@android:color/white"/>
sel_btn_background.xml
android:shape="rectangle">
android:startColor="@color/bluegreen"
android:endColor="@color/aqua_marine"
android:angle="-270" />
I get result :
How to achieve the below result(left side is the light colour fading to dark on right colour) 角度应添加什么值: