B4A Library [B4X] GradientMaker - cross platform gradient background

1739436729390.png
1739436746334.png
1739436769138.png



Usage example:
B4X:
Dim gd As GradientMaker
gd.Initialize
gd.SetGradient(View, "TOP_BOTTOM", Array(XUI.Colors_Red, 0xFF00FF00)) 'same orientations as GradientDrawable. Supports any number of colors.

See the attached example.

BTW, the example uses the nice DDDGrid class: https://www.b4x.com/android/forum/threads/b4x-dse-dddgrid-designer-script-grid.142402/#content
 

Attachments

  • Example.zip
    16.8 KB · Views: 123
  • GradientMaker.b4xlib
    1.5 KB · Views: 130
Top