Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,579 Members 44,021 Now Online
XDA Developers Android and Mobile Development Forum

[Library][WIP] SimpleFingerGestures

Tip us?
 
championswimmer
Old
#1  
championswimmer's Avatar
Recognized Developer - OP
Thanks Meter 7,573
Posts: 4,901
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)

 
DONATE TO ME
Phone [Library][WIP] SimpleFingerGestures

I have often come accross the need to implement to simple gestures like 2-finger swipe up, or pinch, or 1-finger swipe left etc etc. And unfortunately no such simple gesture library exists for Android, so I have started building one.

The library sources are at
https://github.com/championswimmer/S...ndroid_Library

And the javadocs are
http://championswimmer.github.io/Sim.../documentation

I am yet to write a proper wiki-like documentation, but as of now basic functionality like 1-finger swipes and 2-finger swipes are already implemented. In the coming weeks more awesomeness will be added. And I would be more than happy if more people contribute towards the project

Note: If unsure of the way to use, please see the demo app's source
https://github.com/championswimmer/S...nActivity.java
If you like my work, you can donate or buy some of my apps on Play Store

CONTRIBUTIONS :
AOKP | Kernel Kitchen| Xperia X10
PhilzTouchRecovery-Xperia | TWRPXperia | TWRP Xperia (Legacy)

My sources on github
List of donators
My download mirrors :
files.cs || Basketbuild || AndroidFileHost || Goo.im
Phones

Xperia :: tipo . X10 . J . S . V . SP . ZR . Z . Z1compact . Z1 . Z2 . Z Ultra . Tablet Z
The Following 15 Users Say Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
arpitkh96
Old
#2  
arpitkh96's Avatar
Senior Member
Thanks Meter 384
Posts: 1,093
Join Date: Feb 2012
Location: panipat
What is the difference if I use this library or build gestures using gestures builder app and use the file as an overlay

Sent from my GT-S5570 using XDA Premium 4 mobile app
 
championswimmer
Old
#3  
championswimmer's Avatar
Recognized Developer - OP
Thanks Meter 7,573
Posts: 4,901
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)

 
DONATE TO ME
Quote:
Originally Posted by arpitkh96 View Post
What is the difference if I use this library or build gestures using gestures builder app and use the file as an overlay

Sent from my GT-S5570 using XDA Premium 4 mobile app
GEsture builder supports character recognition like things.

This library is to support simpler stuff like I have added

onSwipeUp()

both for 1 finger and 2 finger swipe up (separately)

and I am adding stuff like

onPinch()
onUnpinch()

to views.
If you like my work, you can donate or buy some of my apps on Play Store

CONTRIBUTIONS :
AOKP | Kernel Kitchen| Xperia X10
PhilzTouchRecovery-Xperia | TWRPXperia | TWRP Xperia (Legacy)

My sources on github
List of donators
My download mirrors :
files.cs || Basketbuild || AndroidFileHost || Goo.im
Phones

Xperia :: tipo . X10 . J . S . V . SP . ZR . Z . Z1compact . Z1 . Z2 . Z Ultra . Tablet Z
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
championswimmer
Old
#4  
championswimmer's Avatar
Recognized Developer - OP
Thanks Meter 7,573
Posts: 4,901
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)

 
DONATE TO ME
updated with some more documentation and usage info
If you like my work, you can donate or buy some of my apps on Play Store

CONTRIBUTIONS :
AOKP | Kernel Kitchen| Xperia X10
PhilzTouchRecovery-Xperia | TWRPXperia | TWRP Xperia (Legacy)

My sources on github
List of donators
My download mirrors :
files.cs || Basketbuild || AndroidFileHost || Goo.im
Phones

Xperia :: tipo . X10 . J . S . V . SP . ZR . Z . Z1compact . Z1 . Z2 . Z Ultra . Tablet Z
 
diamant-x
Old
#5  
diamant-x's Avatar
Member
Thanks Meter 6
Posts: 34
Join Date: Aug 2008
Location: Barcelona
Wow, this is great, thanks! The 1/2 finguers swipe are a great AddOn for any app.

Does this listeners trigger once the swipe is completed or during it it also responds (for example to increase/decrease the volume while swiping up/down)?
Diamant-x
Phone: HTC Magic 32b (aka Saphire). Rooted and flashing nice ROMs. ^^
Phone: HTC One X (International Edition), always up to date with official ROM.

My blog, http://endlessmode.wordpress.com
 
championswimmer
Old
#6  
championswimmer's Avatar
Recognized Developer - OP
Thanks Meter 7,573
Posts: 4,901
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)

 
DONATE TO ME
Quote:
Originally Posted by diamant-x View Post
Wow, this is great, thanks! The 1/2 finguers swipe are a great AddOn for any app.

Does this listeners trigger once the swipe is completed or during it it also responds (for example to increase/decrease the volume while swiping up/down)?
right now only on completion, i am implementing the ACTION_MOVE event to handle amount of swipe too

also pinch and unpinch already up
If you like my work, you can donate or buy some of my apps on Play Store

CONTRIBUTIONS :
AOKP | Kernel Kitchen| Xperia X10
PhilzTouchRecovery-Xperia | TWRPXperia | TWRP Xperia (Legacy)

My sources on github
List of donators
My download mirrors :
files.cs || Basketbuild || AndroidFileHost || Goo.im
Phones

Xperia :: tipo . X10 . J . S . V . SP . ZR . Z . Z1compact . Z1 . Z2 . Z Ultra . Tablet Z
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
Tags
gestures, library, multi touch, touch
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Sony PS4 Remote Play Ported to All Android Devices

Im pretty sure that every informed gamer out there perked their ears up when Sony came out … more

Change Your Samsung Galaxy S2’s Dialer Background in Real Time

As with anything, if youve looked at something long enough, things can … more

Increase Your Multitasking Workflow with C-Floating Windows

Technology has put life on the fast track. Lazy, relaxed days have turned into … more

Compile Your Own Kernel From Source with Comprehensive Tutorial

One glance at any developer section of any device forum on XDA and youll find … more