Feb 13, 2025 Replies: 1 Usage example: Code: 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 Example.zip 16.8 KB · Views: 432 GradientMaker.b4xlib GradientMaker.b4xlib 1.5 KB · Views: 496 Click to expand...
Usage example: Code: 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
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2025 #2 Bug with LEFT_RIGHT in B4i fixed. V1.01.