Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to achieve corner gradient in android?

I need to have corner gradient for a button. i.e Light fills from the Bottom left corner upwards.

I tried this way:

<gradient
    android:angle="90"
    android:startColor="#E60000"
    android:centerColor="#800000"
    android:endColor="#E60000"
    android:type="sweep" />

However It just fills the light from right to left. Could anybody help me out?

like image 397
SKN Avatar asked Oct 29 '25 09:10

SKN


1 Answers

Try to give 135 or 225 for angle value

android:angle="135" or android:angle="225"

like image 161
Onur A. Avatar answered Oct 30 '25 23:10

Onur A.