In B4J is "easy" since it's CSS capable... in B4A, not so...
the way I can visualise it would be with 1 or 2 canvas and 2 panels... Set the gradients for each panel, with the solid colors you want, then set a transparent to solid gradient
on the canvas and "sandwhich" them together.... by applying the panel1 background to the canvas, and then appllying the canvas to panel2... never tried it though
Usage example: 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...
www.b4x.com
If you want it softer, apply a blur. (BitmapCreatorEffects method Blur) simple Gaussian
Note: This gradient generation is based on the APIs of each platform. B4J uses CSS.
Usage example: 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...
www.b4x.com
If you want it softer, apply a blur. (BitmapCreatorEffects method Blur) simple Gaussian