Sub setGradientDrawable(cmb As B4XComboBox,enable As Boolean)
Dim pnl As Panel = cmb.mBase
Dim gr As GradientDrawable
Dim cls(2) As Int
If enable Then
cls(0)=Colors.RGB(124,245,239)
cls(1)=Colors.RGB(13,142,137)
Else
cls(0)=Colors.LightGray
cls(1)=Colors.Gray
End If
' cls(0)=Colors.LightGray 'This line need to be commented or removed
gr.Initialize("TOP_BOTTOM",cls)
gr.CornerRadius=6dip
pnl.Background=gr
End Sub