Extension: Gradient in a Layout. Colors by list.

826 views
Skip to first unread message

Juan Antonio

unread,
Dec 17, 2017, 2:35:38 PM12/17/17
to mitappinv...@googlegroups.com
Hi friends, 

this is a gradient in an Arrangement (Layout).

  • You can set several colors by a list.
  • Orientation 8 valors (1 to 8)

  • Orientation: a number from 1 to 8

https://developer.android.com/reference/android/graphics/drawable/GradientDrawable.Orientation.html

  • Type: a number from 0 to 3: LINEAR_GRADIENT , RADIAL_GRADIENT or SWEEP_GRADIENT

https://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html#setGradientType(int)

  • Shape: a number from 0 to 3: LINE , OVAL , RECTANGLE or RING

https://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html#setShape(int)

  • CornerRadius, mode RECTANGLE

https://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html#setCornerRadius(float)


- Juan Antonio Villalpando.


http://kio4.com/appinventor/287_extension_gradiente_color.htm


Regards.

p187_gradiente.aia
com.KIO4_Gradient.aix

TimAI2

unread,
Dec 17, 2017, 5:20:55 PM12/17/17
to MIT App Inventor Forum
Thanks Juan :)

Italo

unread,
Dec 18, 2017, 11:17:40 AM12/18/17
to MIT App Inventor Forum
You have no idea how much work it took me to make a simple gradient editor without any extension in App Inventor 2 for my app Colorful Status Designer 2.
I should have waited one or two more months until you released this! Haha!
For somebody like me who likes to use graphics in App Inventor a lot, this is excellent.
Thanks for sharing it!
Reply all
Reply to author
Forward
0 new messages