In b4A I have set a gradient with 3 colors to a panel :
How make the same in B4X ?
B4X:
dim panel1 as panel
Dim dw As GradientDrawable
Dim colorgris As Int= Colors.RGB(96,96,96)
Dim clr(3) As Int
clr = Array As Int(colorgris,Colors.white,colorgris)
dw.Initialize("TOP_BOTTOM",clr)
panel1.background= dw
How make the same in B4X ?