B4A Question How to iterates B4XMainPage Views - PaulMeuris (first post)    Jun 12, 2023   (5 reactions) In the attached zip-file you can find an example of how to use GetAllViewsRecursive and the B4Xpages.
In the B4XMainPage the Root and CustomListView1 variables are public so they can be used in the page2.
Happy coding! B4A Code Snippet Get relative view position - stevel05    Nov 05, 2019   (11 reactions) Description: These two subs will get the positions of a view relative to the activity, regardless of how many parent panels it is nested in. Version: 2 SubName: GetRelativeTop 'Iterative sub to get the views Top relative to the activity window Public Sub GetRelativeTop(V As JavaObject) As Int B4A Question [ SOLVED] Iterate Views and Get Name and Value - eurojam (first post)    Aug 10, 2016   (1 reaction) you can to do it like this....
For Each v As View In panTreasures.GetAllViewsRecursive
If v.Tag = "yep" Then
'do something....
End If
Next
Views don't have a name, but you can use the tag B4J Question How to find a Label inside a CustomListView-Item? - stevel05 (first post)    Oct 19, 2020   (2 reactions) As you have found out, you cannot use Label, or B4xView as the Type of the view to iterate as not all views can be cast to either. But you can use object and check the type
Dim pnl As B4XView = mCLV.GetPanel(index).Parent
For Each v As Object In pnl.GetAllViewsRecursive
If V Is La B4i Question [B4X] Iterate return error with custom font - Erel (first post)    Mar 25, 2021   (1 reaction) Custom views are not views. Read this: How to get <custom view here> from <CLV or any other container> B4A Question finding custom views - Jack Cole    Jan 15, 2019 I have some code that iterates through all the loaded views and pulls the values from the views that users can enter data into (such as a spinner, edittext, etc...). The problem comes in with adding custom views or XUI views. B4J Question Node, View, B4XView, Control, or some other class? - Heuristx    Aug 03, 2021 Which tutorials should I watch or read to understand the difference between Node, B4XView, View, Control and other screen objects and also the behaviour of the global variables that the Visual Designer can generate? I find some confusing terms. For example, GetAllViewsRecursive is explained as "Ret B4A Library [B4X] Message view based on xCustomlistview - John Naylor    Aug 05, 2023   (11 reactions) This is a lib I have written for a seperate project but I thought some may find it useful. For B4A & B4i 143877 It does everything I need for my project but if there's interest I'll add send/receive images & voice notes etc at some point or any other reasonable requests. Currently it's for text B4A Question Multiple CheckBox in CustomListView - mangojack (first post)    May 08, 2019   (1 reaction) If you already know the Checkbox is the first view (0) on the Item / row panel ... there is now need to iterate thru all panel views. See @Erel 's code above. Also , I would only declare a panel if the Index did not equal ItemIndex. If Checked Then Dim ItemIndex As Int = CustomListView1.GetIt B4A Question Setting properties for each view - Erel (first post)    Sep 28, 2017 That's an important point. Note however that you can write: For Each v As View in Panel (or Activity). It will iterate over their direct child views. Page: 1   2   3   4   5   6   7   Powered by ColBERT |