S ShadTech Member Licensed User Nov 28, 2023 #1 hello all.... i used FaceOffToggleButton in my layout when tried to get the layout panel with th statement B4X: Copy Dim index As Int = CustomListView1.GetItemFromView(Sender) Dim p As Panel p = CustomListView1.GetPanel(index) it raises the following error (ClassCastException) java.lang.ClassCastException: de.donmanfred.FaceOffToggleButtonWrapper$1 cannot be cast to android.view.View,, Click to expand... any help؟؟
hello all.... i used FaceOffToggleButton in my layout when tried to get the layout panel with th statement B4X: Copy Dim index As Int = CustomListView1.GetItemFromView(Sender) Dim p As Panel p = CustomListView1.GetPanel(index) it raises the following error (ClassCastException) java.lang.ClassCastException: de.donmanfred.FaceOffToggleButtonWrapper$1 cannot be cast to android.view.View,, Click to expand... any help؟؟
b4x-de Active Member Licensed User Longtime User Nov 28, 2023 #2 Try casting the Sender to FaceOffToggleButton. Use the Parent property to get the containing panel. Can you use this panel? B4X: Copy Dim index As Int = CustomListView1.GetItemFromView(ParentPanel) Upvote 0
Try casting the Sender to FaceOffToggleButton. Use the Parent property to get the containing panel. Can you use this panel? B4X: Copy Dim index As Int = CustomListView1.GetItemFromView(ParentPanel)
M Mahares Expert Licensed User Longtime User Nov 28, 2023 #3 ShadTech said: i used FaceOffToggleButton in my layout Click to expand... If the lib does not support it or @b4x-de code does not help you, I recommend using B4XSwitch . If you need help with B4XSwitch, come back. Upvote 0
ShadTech said: i used FaceOffToggleButton in my layout Click to expand... If the lib does not support it or @b4x-de code does not help you, I recommend using B4XSwitch . If you need help with B4XSwitch, come back.
S ShadTech Member Licensed User Nov 29, 2023 #4 Mahares said: If the lib does not support it or @b4x-de code does not help you, I recommend using B4XSwitch . If you need help with B4XSwitch, come back. Click to expand... i have CLV in each cell panel of it there is 2 B4XSwitchAcc how change value of the B4XSwitchAcc1.value in specified CLV cell? Upvote 0
Mahares said: If the lib does not support it or @b4x-de code does not help you, I recommend using B4XSwitch . If you need help with B4XSwitch, come back. Click to expand... i have CLV in each cell panel of it there is 2 B4XSwitchAcc how change value of the B4XSwitchAcc1.value in specified CLV cell?
M Mahares Expert Licensed User Longtime User Nov 29, 2023 #5 ShadTech said: how change value of the B4XSwitchAcc1.value in specified CLV cell? Click to expand... Sorry I do not understand your question. Maybe if you post your code or preferably attach your project, I am sure someone in the forum will help you. Upvote 0
ShadTech said: how change value of the B4XSwitchAcc1.value in specified CLV cell? Click to expand... Sorry I do not understand your question. Maybe if you post your code or preferably attach your project, I am sure someone in the forum will help you.
M Mahares Expert Licensed User Longtime User Nov 30, 2023 #6 ShadTech said: i have CLV in each cell panel of it there is 2 B4XSwitchAcc how change value of the B4XSwitchAcc1.value in specified CLV cell? Click to expand... Let me see if I can understand your pos after spending some time reading it over and over: You have a CLV that has items and each item is populated with two B4XSwitches. One B4XSwitchACC1 and the other B4XSwitchACC2. You want to scroll to any CLV panel and click on either B4XSwitches to change its state (value) from True to False or vice versa. You want the B4XSwitch_ValueChanged to tell you which of the two was clicked (1 or 2) and what the value is for the one you clicked (True or False). If this is what you want, I can help you. If not, it is best to post your code/project. Upvote 0
ShadTech said: i have CLV in each cell panel of it there is 2 B4XSwitchAcc how change value of the B4XSwitchAcc1.value in specified CLV cell? Click to expand... Let me see if I can understand your pos after spending some time reading it over and over: You have a CLV that has items and each item is populated with two B4XSwitches. One B4XSwitchACC1 and the other B4XSwitchACC2. You want to scroll to any CLV panel and click on either B4XSwitches to change its state (value) from True to False or vice versa. You want the B4XSwitch_ValueChanged to tell you which of the two was clicked (1 or 2) and what the value is for the one you clicked (True or False). If this is what you want, I can help you. If not, it is best to post your code/project.