All Projects → thiagokimo → Konamicode

thiagokimo / Konamicode

Licence: apache-2.0
Installs the Konami code easter-egg into your Android app ;)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Konamicode

Nativescript Image Swipe
A NativeScript widget to easily 👆 and 🔍 through a list of images
Stars: ✭ 35 (-61.11%)
Mutual labels:  swipe
Swipe Listener
Zero-dependency, minimal swipe-gesture listener for the web.
Stars: ✭ 68 (-24.44%)
Mutual labels:  swipe
React Swipeable List
Swipeable list component for React.
Stars: ✭ 86 (-4.44%)
Mutual labels:  swipe
Jquery.touchslider
A jQuery plugin that makes it easy to create touch sliders.
Stars: ✭ 43 (-52.22%)
Mutual labels:  swipe
Pullupcontroller
Pull up controller with multiple sticky points like in iOS Maps
Stars: ✭ 1,130 (+1155.56%)
Mutual labels:  swipe
Easyble
Multi-devices process Bluetooth library for Android
Stars: ✭ 81 (-10%)
Mutual labels:  listen
Tk Listen
A library that allows to listen network sockets with proper resource limits and error handling
Stars: ✭ 27 (-70%)
Mutual labels:  listen
Play.cash
🎶 Music lovers, rejoice.
Stars: ✭ 89 (-1.11%)
Mutual labels:  listen
Flutter swipe action cell
A flutter UI package provides ListView leading and trailing swipe action menu.
Stars: ✭ 65 (-27.78%)
Mutual labels:  swipe
React Easy Swipe
Easy handler for common swipe operations
Stars: ✭ 85 (-5.56%)
Mutual labels:  swipe
Uwp App Launcher Mobile
[Open Source] It's like the iOS and Android Home Screens but for Windows 10 (Phones).
Stars: ✭ 47 (-47.78%)
Mutual labels:  swipe
React Soft Slider
Simple, fast and impartial slider
Stars: ✭ 54 (-40%)
Mutual labels:  swipe
Gesturerecognizerclosures
Closure support for handling gesture recognizers in Swift.
Stars: ✭ 84 (-6.67%)
Mutual labels:  swipe
Class bot
An Automated Background Python bot that notifies you during your classes when your name is called or the keywords "present"/"attendance" are called out.
Stars: ✭ 36 (-60%)
Mutual labels:  listen
Ionic Tinder Ui
Just a Tinder UI on Ionic
Stars: ✭ 86 (-4.44%)
Mutual labels:  swipe
Llmlistview
super list view for uwp
Stars: ✭ 27 (-70%)
Mutual labels:  swipe
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-12.22%)
Mutual labels:  swipe
Godot Swipe Detector
Detect gestures and swipes in your game
Stars: ✭ 90 (+0%)
Mutual labels:  swipe
Angular Swipe
Simple vertical and horizontal swipe gesture directive for angular js
Stars: ✭ 88 (-2.22%)
Mutual labels:  swipe
React Native Deck Swiper
tinder like react-native deck swiper
Stars: ✭ 1,261 (+1301.11%)
Mutual labels:  swipe

KonamiCode


Easy install of our favorite easter-egg!

konami-code-tutorial

JitPack Badge Android Arsenal

Preview

Get it on Google Play

a screenshot

Inculde in your project

Gradle

Add the JitPack repository to your build file:

repositories {
    maven {
	    url "https://jitpack.io"
	}
}

Add the dependency in the form:

dependencies {
    compile 'com.github.thiagokimo:KonamiCode:1.1.6'
}

Maven

If you use Maven, add this into your build file:

<repository>
    <id>jitpack.io</id>
	<url>https://jitpack.io</url>
</repository>

And them this into your dependencies

<dependency>
    <groupId>com.github.thiagokimo</groupId>
    <artifactId>KonamiCode</artifactId>
	<version>1.1.6</version>
</dependency>

How to use

Add the following code in your Activity:

new KonamiCode.Installer(context)
        .on(activity-or-fragment-or-view)
        .install();

The library injects a KonamiCodeLayout as the first child of your Activity's view. It listens your swipe events without harming the touch events of the original view.

For the first part of the Konami code, swipe into the correct directions. If you do it correctly, an AlertDialog with the buttons A, B and START will appear. Pressing them correctly will trigger the final callback.

By default a callback with a Toast message will appear. You can customize the final callback by yourself:

new KonamiCode.Installer(context)
        .on(activity-or-fragment-or-view)
        .callback(new KonamiCodeLayout.Callback() {
            @Override
            public void onFinish() {
                //whatever
            }
        })
        .install();

Attention

Make sure you add this AFTER your view is set, otherwise it won't listen to your swipes. KonamiCode adds a swipe listener into the root view of your Activity.

Contribuiting

  1. Fork it
  2. Create your feature/bug-fix branch(git checkout -b my-new-feature-or-fix)
  3. Commit your changes (git commit -am 'Add some feature/fix')
  4. Do your pull-request

Developed by

License

Copyright 2011, 2012 Thiago Rocha

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].