Swipe ActionView

This extension allows you to create a second hidden layout in a layout or a dynamic list that could be animated or shown on swiping the the main layout.


Thanks @Sergii for sponsoring the extension.

Released on : 13 Aug 2021

Last Updated on : 13 Aug 2021

Latest Version : 1.0.0

All Blocks
image
Documentation
component_event

This event raises when the surface view is swiped full.

component_event (1)

This event raises when user releasd its hand from the surface view.

component_event (2)

This event raises when user swiping your view(not opened fully nor closed fully). It returns horizontal offset in x variabe and vertical offset in y variable.

component_event (3)

This event raises when surface view is visible fully in UI or background view has been slided and closed.

component_method (4)

This block do the main job that is to create the swipe layout. It is a type of fram layout just has some swipeable functions. You have to give a unique id so you can use it later to add the views and customising it. Give the container in which you want to create this layout to in parameter. surfaceView parameter accept the main layout that will be shown frontly. clicktoClose paramter accept a boolean value if given true then when user click bakcground views then it will be closed autimatically.

component_method (5)

This block helps you to enable or disable the swipe in particular direction. There are 4 properties given for defining the direction.

component_method (6)

This block helps you to add the views that will be shown in background or when the surface view is being swiped. You can add one view to one direction and can add four views in four direction. See the Usage for more info.

component_method (7)

This block set the mode of swipe layout. There are two properties given for defining the modes.

component_method (8)

This block return the current applied show mode refrenced to given id.

component_method (9)

This block opens or swipe the view in given direction refrenced to given id.

component_method (10)

This block close or slide the surface view to its original position.

image

These are two properties for modes.

image

These are the properties for defining the direction or drag edge.

How to Use
blocks (13)

First you have to use this block to create the swipe layout in given container.

blocks (14)

After creating the layout layout you need to add the views(min :- 1 and max :- 4) in any direction but one view to one direction.
You just completed the necesarry steps. Now you can change the modes or add the events for listening.

Screenshots
IMG_0zvclf

Simple View


IMG_c9jtlu

Dynamic Simple List


IMG_bjz3t7

Grid View


Downloads

Download AIX : com.sumit1334.swipeactionview.aix (31.4 KB)
Download APK : SwipeActionView.apk (5.17 MB)


You can download it from GetAix.com