P peve9 Member Licensed User Longtime User Apr 3, 2013 #1 Hi everyone! I don't understand how can I change the selection color of a customlistview item. I understand that I have to change this : B4X: idPressed = r.GetStaticField("android.R$drawable", "list_selector_background") Can anyone help me? :sign0085:
Hi everyone! I don't understand how can I change the selection color of a customlistview item. I understand that I have to change this : B4X: idPressed = r.GetStaticField("android.R$drawable", "list_selector_background") Can anyone help me? :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2013 #2 You can assign a different drawable to pressedDrawable variable. For example: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Red, 0) pressedDrawable = cd Upvote 0
You can assign a different drawable to pressedDrawable variable. For example: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Red, 0) pressedDrawable = cd