1.Introduction
Description: Using this extension you can create a vertical version of View Pager
Latest Version: 1.2
Last Updated: 2021-10-01T18:30:00Z
Released: 2021-06-09T18:30:00Z
2.Blocks
3.Usages
Initialize and Add views
Adds view pager to the container and adds given views into view pager
Alternatively you can add view at specific index too
Remove view by index
Removes the view present at given index
Remove view by view itself
Removes the view from pager but does not destroy that
Scroll To
Scrolls to given index
smoothScroll specifies whether animation should happen or not
Get Current View Index
Returns the current view's index
Get Total Views count
Returns number of views added
Remove View Pager
Removes given view pager from view system
Use a different transfor
Setting this property to true/false will be applied on pagers created afterwards
4.Download
Aix can be downloaded from Github repo:
Extension to create Vertical View Pager (For MIT AI2 and its distros)
Download AIA: VerticalViewPager.aia (17.7 KB)
If you liked the extension and want to donate
How it looks
5.Updates
ChangeLog Version 1.1
New Blocks
Changes
Added id system
Dynamic Components support
ChangeLog Version 1.2
New Blocks
Hope it helps!
19 Likes
TIMAI2
June 10, 2021, 4:45pm
3
It would be useful to see some blocks at work in an aia project, and also a video of how this works.
What is a ViewPager?
Given this is for a vertical viewpager, is there already a horizontal one ?
3 Likes
Remembered this post
Nice Extension Ser
4 Likes
Added to the first post
TIMAI2:
What is a ViewPager?
ViewPager is like a Scroll View (either horizontal or vertical) which hosts only one child view at a time.
This one can be termed as a Horizontal View Pager:
1.Introduction
Description: An extension to create ViewFlipper
Latest Version: 1
Released: 2021-04-27T18:30:00Z (UTC)
Last Updated: 2021-04-27T18:30:00Z (UTC)
2.Blocks
[image]
3.Usage
Create flipper
[image]
Add Views
[image]
Note: Dynamic Components can be added too
Start/Stop Flipping
[image]
Additional Functions
[image]
[image]
Fun fact: If AutoStart is enabled then flipping will start as soon as you add the second view
4.Download
Download Aix: com.sunny.flipper.aix (6.8 KB)
D…
2 Likes
TIMAI2
June 23, 2021, 10:37pm
10
Can a HorizontalViewPager extension be made to behave the same way as the Vertical one, i.e. reacts to user swipe right/left, as opposed to it being automated ? It is more natural to swipe left/right, and AppInventor already has a vertical "scroll" of sorts....
Or perhaps both in one extension ?
TIMAI2
July 10, 2021, 3:35pm
12
I was hoping my enquiry might encourage you to make a horizontal one
3 Likes
TIMAI2
July 11, 2021, 11:05am
14
most excellent work
(a few of the tool tip/descriptions might need editing)
1 Like
Actually it (extension) is different from current thread so I may publish it someday else.
1 Like
Essamy
October 15, 2021, 5:58pm
17
When I tried using both HorizontalViewPager and VerticalViewPager in the same project I got attached error..
Can I use both with each other?
TIMAI2
October 15, 2021, 6:38pm
18
Not currently, they are essentially the same extension with a few tweaks. The horizontal view pager has not been officially released as a separate extension by @vknow360
1 Like
Looks like this "index" is 0-based, better to change to 1-based, as same to other app inventor component.
1 Like