B4J Library jPager - ViewPager

This is a high performance pager, optimized for large lists. No flickering or other unwanted behavior when changing index in large lists.
Page change via arrow keys on the keyboard, or with the NextPage/PreviousPage function.

I spend a lot of time in creating views, some views i need by my self, but some views not and to create a high quality view cost a lot of time. If you want to support me, then you can do it here by Paypal or with a coffee. :)

jPager.gif

jPager
Author: Alexander Stolte
Version: 1.00

  • jPager
    • Events:
      • LazyLoadingAddContent (Parent As B4XView, Value As Object)
      • PageChanged (Index As Int)
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • AddPage (PagePanel As B4XView, Value As Object) As String
      • AddPageAt (Index As Int, PagePanel As B4XView, Value As Object) As String
      • Base_Resize (Width As Double, Height As Double) As String
      • Class_Globals As String
      • Clear As String
      • Commit As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • getIndex As Int
      • GetPanel (Index As Int) As B4XView
        Returns the Panel stored at the specified index.
      • getSize As Int
      • GetValue (Index As Int) As Object
        Returns the Value stored at the specified index.
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • NextPage As String
      • PreviousPage As String
      • RemovePageAt (Index As Int) As String
      • setIndex (Index As Int) As String
    • Properties:
      • Index As Int
      • Size As Int [read only]
Changelog
  • 1.00
    • Release
  • 1.01
    • BugFix
  • 1.02
    • Add get and set LazyLoading
    • Add get and set LazyLoadingExtraSize
Have Fun :)
 

Attachments

  • jPager Example.zip
    3.6 KB · Views: 125
  • jPager.b4xlib
    2.3 KB · Views: 69
Last edited:
Top