android Programming Glossary: gradientradius
Gradient Radius as percentage of screen size http://stackoverflow.com/questions/11176590/gradient-radius-as-percentage-of-screen-size shape rectangle gradient android endColor #000 android gradientRadius 50 p android startColor #5d2456 android type radial shape But.. does work but not as you expected. First of all android gradientRadius 50 seems to take the value as pixels 50px android gradientRadius.. 50 seems to take the value as pixels 50px android gradientRadius 50 is converted as if 50 0.5 px try android gradientRadius 5000..
Circular gradient in android http://stackoverflow.com/questions/2470072/circular-gradient-in-android shape rectangle gradient android type radial android gradientRadius 250 android startColor #E9E9E9 android endColor #D4D4D4 shape..
Oval Gradient in Android http://stackoverflow.com/questions/3527567/oval-gradient-in-android startColor #66FFFFFF android endColor #00FFFFFF android gradientRadius 100 android type radial shape If you can imagine this gradient..
Android - how to define ShapeDrawables programmatically? http://stackoverflow.com/questions/7150593/android-how-to-define-shapedrawables-programmatically centerColor #FFFFFF88 android endColor #FFFFFFFF android gradientRadius 250 android centerX 1 android centerY 0 android angle 315 shape..
Gradient Radius as percentage of screen size http://stackoverflow.com/questions/11176590/gradient-radius-as-percentage-of-screen-size xmlns android http schemas.android.com apk res android android shape rectangle gradient android endColor #000 android gradientRadius 50 p android startColor #5d2456 android type radial shape But it doens't seem to work. if I remove the p it works but then.. share improve this question From what I´ve tested the does work but not as you expected. First of all android gradientRadius 50 seems to take the value as pixels 50px android gradientRadius 50 is converted as if 50 0.5 px try android gradientRadius.. work but not as you expected. First of all android gradientRadius 50 seems to take the value as pixels 50px android gradientRadius 50 is converted as if 50 0.5 px try android gradientRadius 5000 and you will see a 50px radius. Using p has a similar result...
Circular gradient in android http://stackoverflow.com/questions/2470072/circular-gradient-in-android
Oval Gradient in Android http://stackoverflow.com/questions/3527567/oval-gradient-in-android apk res android android shape oval gradient android startColor #66FFFFFF android endColor #00FFFFFF android gradientRadius 100 android type radial shape If you can imagine this gradient has a semi transparent white glow in the middle then fades..
Android - how to define ShapeDrawables programmatically? http://stackoverflow.com/questions/7150593/android-how-to-define-shapedrawables-programmatically color #FF000000 gradient android startColor #FFFFFFFF android centerColor #FFFFFF88 android endColor #FFFFFFFF android gradientRadius 250 android centerX 1 android centerY 0 android angle 315 shape item layer list And if I use mMyImageView.setBackgroundResource..
|