[Class/Library] Multi Type SlidingPanels
I wanted to make one SlidingPanels that it could be used in multiple ways. Now that I have finished writing the code I put at your disposal.
At the moment you can do these variants SlidingPanels:
- Classic full screen mode.
- Sliding panels with smaller screen.
- Sliding panels with smaller screen and with zoom!
- With or without friction.
Methods:
- Click.
- Change.
Methods:
- JumpToPanel () - Runs the SlidingPanels up to a specific Panel.
- GetCurrentPanel - Returns the number of the current Panel.
- GetSlidingInProgress - Return if the SlidingPaneles is in progress.
- SetSpeedScroll () - Sets the speed of sliding.
It is possible to easily create a page counter thanks to the events.
[UPDATE V1.10]
- Added the ability to use the touch events of Activity, which is useful when you must insert many objects on the panels. Recommended this mode.
- Added the field area to be used for zooming.
[UPDATE V1.10a]
- Minor bug fix for small display.
[UPDATE V1.20]
- Added the LongClick event.
- Changed the type of data sent with the Click events and LongClick.
- Minor improvements.
[UPDATE V1.21]
- Bugfix in FullScreen mode (loop setup).
IMPORTANT
For most fluidity add this code to the Manifest:
For suggestions and bug reports please do not hesitate to post it here.
I wanted to make one SlidingPanels that it could be used in multiple ways. Now that I have finished writing the code I put at your disposal.
At the moment you can do these variants SlidingPanels:
- Classic full screen mode.
- Sliding panels with smaller screen.
- Sliding panels with smaller screen and with zoom!
- With or without friction.
Methods:
- Click.
- Change.
Methods:
- JumpToPanel () - Runs the SlidingPanels up to a specific Panel.
- GetCurrentPanel - Returns the number of the current Panel.
- GetSlidingInProgress - Return if the SlidingPaneles is in progress.
- SetSpeedScroll () - Sets the speed of sliding.
It is possible to easily create a page counter thanks to the events.
[UPDATE V1.10]
- Added the ability to use the touch events of Activity, which is useful when you must insert many objects on the panels. Recommended this mode.
- Added the field area to be used for zooming.
[UPDATE V1.10a]
- Minor bug fix for small display.
[UPDATE V1.20]
- Added the LongClick event.
- Changed the type of data sent with the Click events and LongClick.
- Minor improvements.
[UPDATE V1.21]
- Bugfix in FullScreen mode (loop setup).
IMPORTANT
For most fluidity add this code to the Manifest:
B4X:
SetActivityAttribute(Main, android:hardwareAccelerated, "true")
For suggestions and bug reports please do not hesitate to post it here.
Attachments
-
Screenshot_2012-11-14-18-22-53 (ridotta).jpg11.4 KB · Views: 2,258
-
Screenshot_2012-11-14-18-23-10 (ridotta).jpg13.3 KB · Views: 2,136
-
Screenshot_2012-11-14-18-24-18 (ridotta).jpg33.7 KB · Views: 2,158
-
Screenshot_2012-11-15-10-02-38 (ridotta).png18.7 KB · Views: 1,907
-
SlidingPanels_1.21.zip69.1 KB · Views: 1,215
Last edited: