B4A Library [B4X] [XUI] AS ViewPager based on xCustomListView

JGParamo

Member
Licensed User
Impressive work. I hope this should resolve observed flickering I have encountered, discussed here.. https://www.b4x.com/android/forum/t...g-only-one-page-out-of-multiple-pages.139658/ thank you.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
On Android platform, sometimes the page transition is only partially completed.
Look at the picture below: the black stripe at the arrow position, is the next page.
Scrolling is halted at this position: the PageChanged event is fired with the position of the next page (the black one), which is only partially displayed, while the previous one is still on screen.
Swiping again will bring the right page on screen.
I haven't still identified what is the condition that triggers this behavior, and I can't reproduce it at will.
I'm reporting it here, so if someone is also observing the same, maybe we'll figure it out.

 

b4x-de

Active Member
Licensed User
Longtime User
Dear Alexander,

would you please check line 315 in ASViewPage.Base_Resize()? An #IF B4J is not closed until the next #IF B4A or B4i (in line 324) is opened. This might be a programming error. Thanks.

Thomas
 

james_sgp

Active Member
Licensed User
Longtime User
The lib file on page 1 doesn`t seem to be version 2...where can I download it as I need it to use your Datepicker.

Thanks, James
 

james_sgp

Active Member
Licensed User
Longtime User
Apologies found my issue...It was an outdated version of the library lurking in a different folder. Once deleted it shows I`m using V2.
 

Attachments

  • Screenshot 2023-07-18 071017.png
    251.9 KB · Views: 96

sagmill

Member
Hi, when I run this error occurred:

B4A Version: 12.50
Parsing code. (0.05s)
Java Version: 14
Building folders structure. (0.03s)
Compiling code. (0.08s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.07s)
Linking resources (0.32s)
Compiling debugger engine code. (0.01s)
Compiling generated Java code. Error
Cannot find: C:\Program Files\Anywhere Software\B4A\libraries\asviewpager.jar
 

b4x-de

Active Member
Licensed User
Longtime User
Please make sure your paths are configured correctly and the asviewpager.jar is located in the Additional Libraries folder.
 

khandah

Member
Update
1.10

  • Add AddPageAt (experimental it works for my need, if you have issuses, then tell me) - Adds an page at a special position
  • Add set CurrentIndex2 - sets the current index - jumps to the item
  • Better resize handling
Can we use it as Wizard ? I mean to use each page as form ?
Thanks.
 

Alexander Stolte

Expert
Licensed User
Longtime User
I mean to use each page as form ?
That is the purpose of this component. You can see an example at AS_SlidingOnboarding.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 2.01
    • BugFixes and Improvements
    • Add Event PageChanged2
This updates makes the following possible:
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…