[Library][2.2+] Airy 2.0.1, a free software gesture library for Android™ and the Web.

Search This thread

mirasmithy

Member
Nov 11, 2013
13
32
27
miras.io
Airy 2.0.1
A free software gesture library for Android™ and the Web.

Copyright and License information.

Copyright (C) 2015 Miras Absar

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.


Gestures
  • One Finger Tap
  • One Finger Swipe Up
  • One Finger Swipe Down
  • One Finger Swipe Left
  • One Finger Swipe Right
  • Two Finger Tap
  • Two Finger Swipe Up
  • Two Finger Swipe Down
  • Two Finger Swipe Left
  • Two Finger Swipe Right
  • Two Finger Pinch In
  • Two Finger Pinch Out

Android Implementation

Code:
View mView = findViewById(R.id.view);

Airy mAiry = new Airy(this) {

    @Override
    public void onGesture(View pView, int pGestureId) {
        switch (pGestureId) {
            case Airy.UNKNOWN_GESTURE:
                break;
            case Airy.ONE_FINGER_TAP:
                break;
            case Airy.ONE_FINGER_SWIPE_UP:
                break;
            case Airy.ONE_FINGER_SWIPE_DOWN:
                break;
            case Airy.ONE_FINGER_SWIPE_LEFT:
                break;
            case Airy.ONE_FINGER_SWIPE_RIGHT:
                break;
            case Airy.TWO_FINGER_TAP:
                break;
            case Airy.TWO_FINGER_SWIPE_UP:
                break;
            case Airy.TWO_FINGER_SWIPE_DOWN:
                break;
            case Airy.TWO_FINGER_SWIPE_LEFT:
                break;
            case Airy.TWO_FINGER_SWIPE_RIGHT:
                break;
            case Airy.TWO_FINGER_PINCH_IN:
                break;
            case Airy.TWO_FINGER_PINCH_OUT:
                break;
        }
    }

};

mView.setOnTouchListener(mAiry);


JavaScript Implementation

Code:
var mElement = document.getElementById("element");

var mOnGesture = function(pElement, pGestureId) {
    switch (pGestureId) {
        case Airy.prototype.UNKNOWN_GESTURE:
            break;
        case Airy.prototype.ONE_FINGER_TAP:
            break;
        case Airy.prototype.ONE_FINGER_SWIPE_UP:
            break;
        case Airy.prototype.ONE_FINGER_SWIPE_DOWN:
            break;
        case Airy.prototype.ONE_FINGER_SWIPE_LEFT:
            break;
        case Airy.prototype.ONE_FINGER_SWIPE_RIGHT:
            break;
        case Airy.prototype.TWO_FINGER_TAP:
            break;
        case Airy.prototype.TWO_FINGER_SWIPE_UP:
            break;
        case Airy.prototype.TWO_FINGER_SWIPE_DOWN:
            break;
        case Airy.prototype.TWO_FINGER_SWIPE_LEFT:
            break;
        case Airy.prototype.TWO_FINGER_SWIPE_RIGHT:
            break;
        case Airy.prototype.TWO_FINGER_PINCH_IN:
            break;
        case Airy.prototype.TWO_FINGER_PINCH_OUT:
            break;
    }
};

var mAiry = new Airy(mOnGesture);
mAiry.attachTo(mElement);


Airy on GitHub
 

Attachments

  • airy-2.0.1.zip
    46.6 KB · Views: 39
Last edited:
E

everreadybattery

Guest
Is this a flashable zip?

Does it only work with EPOCH?

I tried flashing and got "Installation Aborted" ?
You have to look in title. It says LIBRARY meaning that it's a library for use if you are an application PROGRAMMER. If you aren't it's not necessary for you ;)
 

4Freedom

Senior Member
Jul 9, 2013
1,366
532
Airy

Copyright 2014 Miras Absar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[/CODE]


how about license?
can i use it freely?
 

mirasmithy

Member
Nov 11, 2013
13
32
27
miras.io
how about license?
can i use it freely?

You can use, modify, and redistribute Airy freely.
Just be sure to include the original copyright and license, state any changes you've made, and state that you're using Airy in your project.

TL;DR
Just put this somewhere in your project :D
Code:
Airy

Copyright 2014 Miras Absar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 
  • Like
Reactions: 4Freedom
E

everreadybattery

Guest
You can use, modify, and redistribute Airy freely.
Just be sure to include the original copyright and license, state any changes you've made, and state that you're using Airy in your project.

TL;DR
Just put this somewhere in your project :D
Code:
Airy

Copyright 2014 Miras Absar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
I'm also curious if I can take only the class from your lib( may be a noobish question) and not the path. Of course keeping the copyright.
 

voriax

Senior Member
Sep 16, 2009
396
294
Hello.

May I kindly ask for what Android API level is this:

RelativeLayout mRelativeLayout = new RelativeLayout();

?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Airy 2.0.1
    A free software gesture library for Android™ and the Web.

    Copyright and License information.

    Copyright (C) 2015 Miras Absar

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.


    Gestures
    • One Finger Tap
    • One Finger Swipe Up
    • One Finger Swipe Down
    • One Finger Swipe Left
    • One Finger Swipe Right
    • Two Finger Tap
    • Two Finger Swipe Up
    • Two Finger Swipe Down
    • Two Finger Swipe Left
    • Two Finger Swipe Right
    • Two Finger Pinch In
    • Two Finger Pinch Out

    Android Implementation

    Code:
    View mView = findViewById(R.id.view);
    
    Airy mAiry = new Airy(this) {
    
        @Override
        public void onGesture(View pView, int pGestureId) {
            switch (pGestureId) {
                case Airy.UNKNOWN_GESTURE:
                    break;
                case Airy.ONE_FINGER_TAP:
                    break;
                case Airy.ONE_FINGER_SWIPE_UP:
                    break;
                case Airy.ONE_FINGER_SWIPE_DOWN:
                    break;
                case Airy.ONE_FINGER_SWIPE_LEFT:
                    break;
                case Airy.ONE_FINGER_SWIPE_RIGHT:
                    break;
                case Airy.TWO_FINGER_TAP:
                    break;
                case Airy.TWO_FINGER_SWIPE_UP:
                    break;
                case Airy.TWO_FINGER_SWIPE_DOWN:
                    break;
                case Airy.TWO_FINGER_SWIPE_LEFT:
                    break;
                case Airy.TWO_FINGER_SWIPE_RIGHT:
                    break;
                case Airy.TWO_FINGER_PINCH_IN:
                    break;
                case Airy.TWO_FINGER_PINCH_OUT:
                    break;
            }
        }
    
    };
    
    mView.setOnTouchListener(mAiry);


    JavaScript Implementation

    Code:
    var mElement = document.getElementById("element");
    
    var mOnGesture = function(pElement, pGestureId) {
        switch (pGestureId) {
            case Airy.prototype.UNKNOWN_GESTURE:
                break;
            case Airy.prototype.ONE_FINGER_TAP:
                break;
            case Airy.prototype.ONE_FINGER_SWIPE_UP:
                break;
            case Airy.prototype.ONE_FINGER_SWIPE_DOWN:
                break;
            case Airy.prototype.ONE_FINGER_SWIPE_LEFT:
                break;
            case Airy.prototype.ONE_FINGER_SWIPE_RIGHT:
                break;
            case Airy.prototype.TWO_FINGER_TAP:
                break;
            case Airy.prototype.TWO_FINGER_SWIPE_UP:
                break;
            case Airy.prototype.TWO_FINGER_SWIPE_DOWN:
                break;
            case Airy.prototype.TWO_FINGER_SWIPE_LEFT:
                break;
            case Airy.prototype.TWO_FINGER_SWIPE_RIGHT:
                break;
            case Airy.prototype.TWO_FINGER_PINCH_IN:
                break;
            case Airy.prototype.TWO_FINGER_PINCH_OUT:
                break;
        }
    };
    
    var mAiry = new Airy(mOnGesture);
    mAiry.attachTo(mElement);


    Airy on GitHub
    1
    Is this a flashable zip?

    Does it only work with EPOCH?

    I tried flashing and got "Installation Aborted" ?
    1
    how about license?
    can i use it freely?

    You can use, modify, and redistribute Airy freely.
    Just be sure to include the original copyright and license, state any changes you've made, and state that you're using Airy in your project.

    TL;DR
    Just put this somewhere in your project :D
    Code:
    Airy
    
    Copyright 2014 Miras Absar
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.