I want the user to know when he has clicked an panel by changing the background of the panel. initially the panel is white. when the user clicks need to make it light gray and then back to white again when the user releases his finger.
Dim pnlPanel As Panel
pnlPanel.Initialize("")
Dim ClickColor As ColorDrawable
Dim NormalColor As ColorDrawable
ClickColor.Initialize(Colors.Red, 0dip)
NormalColor.Initialize(Colors.Blue, 0dip)
Dim sld As StateListDrawable
sld.Initialize
sld.AddState(sld.State_Pressed, ClickColor)
sld.AddCatchAllState(NormalColor)
pnlPanel.Background = sld