Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,773 Members 52,104 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 7504
Posts: 4,876
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 | TWRPXperia | Kernel Kitchen| TWRP Xperia (Legacy) | Xperia X10

My sources on github
List of donators
My download mirrors : 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 376
Posts: 1,087
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 7504
Posts: 4,876
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 | TWRPXperia | Kernel Kitchen| TWRP Xperia (Legacy) | Xperia X10

My sources on github
List of donators
My download mirrors : 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 7504
Posts: 4,876
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 | TWRPXperia | Kernel Kitchen| TWRP Xperia (Legacy) | Xperia X10

My sources on github
List of donators
My download mirrors : 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 7504
Posts: 4,876
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 | TWRPXperia | Kernel Kitchen| TWRP Xperia (Legacy) | Xperia X10

My sources on github
List of donators
My download mirrors : 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


How to Factory Reset your Samsung Gear Live Android Wear SmartWatch – XDA Developer TV

Do you want to Factory Reset your Samsung Gear … more

Get Your Special xda:devcon ’14 Hotel And Conference Rate While It Lasts

By now you’ve definitely heard about XDA’s … more

Google Chromecast Rootable Once Again!

Over the six months, theGoogle Chromecasthas gained a considerable amount of official functionality. … more

YAATA isn’t Just Another Android Texting App

Although our mobile devices today are capable of executingnearly every task we normally … more