Hello ,
How can I change the background color of a listview when I click on it ?
I have tried this but with no result :
But with not the desired success.
How can I change the background color of a listview when I click on it ?
I have tried this but with no result :
B4X:
Sub lst_ItemClick (Position As Int, Value As Object)
lst..TwoLinesLayout.Label.Color=Colors.Blue
lst.TwoLinesLayout.SecondLabel.Color=Colors.Blue
End Sub
Even this one:
Sub lst_ItemClick (Position As Int, Value As Object)
Dim cdwColor As ColorDrawable
cdwColor.Initialize(Colors.Blue,1dip)
lstFornitori.TwoLinesLayout.Label.Background=cdwColor
End Sub
Even with :
' Dim bm As BitmapDrawable
' Dim gd As GradientDrawable
But with not the desired success.