Jerez Active Member Licensed User Longtime User Sep 6, 2015 #1 Hi, I've a StdViewPager with 6-7 pages. Each page has views based in same layout. I need to iterate in all Views looking for a specific Tag contained inside of a StdViewPager. If i go to page 3 for example and then iterate with GetAllViewsRecursive just found Views contained in current page and in best case the contiguous page. If i go to page 4 and iterate again then GetAllViewsRecursive found the view. NOTE: I've changed the StdViewPaget with an HorizontalScrollView and GetAllViewsRecursite works perfect... but when it is 'swiped' scroll to infinite... any way to stop in each panel? simulating scroll page by page? Thanks ! Code: For Each v As View In Activity.GetAllViewsRecursive if v is Imageview then dim iv as imageview = v [...] end if Next Last edited: Sep 6, 2015
Hi, I've a StdViewPager with 6-7 pages. Each page has views based in same layout. I need to iterate in all Views looking for a specific Tag contained inside of a StdViewPager. If i go to page 3 for example and then iterate with GetAllViewsRecursive just found Views contained in current page and in best case the contiguous page. If i go to page 4 and iterate again then GetAllViewsRecursive found the view. NOTE: I've changed the StdViewPaget with an HorizontalScrollView and GetAllViewsRecursite works perfect... but when it is 'swiped' scroll to infinite... any way to stop in each panel? simulating scroll page by page? Thanks ! Code: For Each v As View In Activity.GetAllViewsRecursive if v is Imageview then dim iv as imageview = v [...] end if Next
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #2 Is this a question or a bug report? What exactly is the bug?
DonManfred Expert Licensed User Longtime User Sep 6, 2015 #3 Jerez said: any way to stop in each panel Click to expand... exit the loop when you are in the right panel Or just check the view recursive of the active panel you need.
Jerez said: any way to stop in each panel Click to expand... exit the loop when you are in the right panel Or just check the view recursive of the active panel you need.
Jerez Active Member Licensed User Longtime User Sep 6, 2015 #4 I think that is a bug. An example: Left side: StdviewPager...GetallViewsRecursive cannot get all views. Right side: HorizontalScrollView... GetallViewsRecursive get all views with sucess! NOTE: I would stay with the HorizontalScrollView but do not know how to advance page by page ... Last edited: Sep 7, 2015
I think that is a bug. An example: Left side: StdviewPager...GetallViewsRecursive cannot get all views. Right side: HorizontalScrollView... GetallViewsRecursive get all views with sucess! NOTE: I would stay with the HorizontalScrollView but do not know how to advance page by page ...
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #5 The video is private. Anyway it is not a bug. Activity.GetAllViewsRecursive collects all the views that are children of the Activity (recursivly). StdViewPager maintains its own set of views. Not all of them are part of the activity tree. So this method will not return it.
The video is private. Anyway it is not a bug. Activity.GetAllViewsRecursive collects all the views that are children of the Activity (recursivly). StdViewPager maintains its own set of views. Not all of them are part of the activity tree. So this method will not return it.
Jerez Active Member Licensed User Longtime User Sep 6, 2015 #6 Erel said: The video is private. Anyway it is not a bug. Activity.GetAllViewsRecursive collects all the views that are children of the Activity (recursivly). StdViewPager maintains its own set of views. Not all of them are part of the activity tree. So this method will not return it. Click to expand... Check it again please. I found the right way: Code: For x = 0 To vp.Panels.Length -1 For Each p As View In vp.Panels(x).GetAllViewsRecursive [...] Next Next Last edited: Sep 7, 2015
Erel said: The video is private. Anyway it is not a bug. Activity.GetAllViewsRecursive collects all the views that are children of the Activity (recursivly). StdViewPager maintains its own set of views. Not all of them are part of the activity tree. So this method will not return it. Click to expand... Check it again please. I found the right way: Code: For x = 0 To vp.Panels.Length -1 For Each p As View In vp.Panels(x).GetAllViewsRecursive [...] Next Next