[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:
SetActivityAttribute(Main, android:hardwareAccelerated, "true")
For suggestions and bug reports please do not hesitate to post it here.