Giter VIP home page Giter VIP logo

konamicode's Introduction

Hi there ๐Ÿ‘‹

  • ๐ŸŒฑ Iโ€™m currently learning game development and pixel art.
  • ๐Ÿ’ฌ Ask me about table tennis, music and mechanical keyboards.
  • ๐Ÿ“ซ How to reach me: [email protected]

Contribution Stats

konamicode's People

Contributors

thiagokimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

konamicode's Issues

Still available?

Including this line in my build.gradle:

implementation 'com.github.thiagokimo:KonamiCode:1.1.6'

produces an error:

ERROR: Failed to resolve: com.github.thiagokimo:KonamiCode:1.1.6
Show in Project Structure dialog
Affected Modules: app

Version information:

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 22
targetSdkVersion 28
}
}

Any thoughts?

DrawerLayout behavior overriden

Hi,

I'm encountering some issue with your library

So this is a simple To Do App, with a toolbar and a DrawerLayout for the navigation.

This is the expected behavior of the app, the drawerLayout draws over the status bar

without_konami

Now, as soon as I put the code to initialize the library, this happens :

with_konami

As you can see, now the drawerLayout doesnt draw over the status bar anymore, and the status bar isn't black but light grey.
Do you have any idea why this is happening ?

For reference I'm testing it with the following sample : https://github.com/googlesamples/android-architecture/tree/todo-mvp/

Not working with ViewPagers

Activities with ViewPagers inside them are not detecting the Konami Code swipes. It seems the ViewPager is overriding anything that comes from the DirectionListener.

Cannot resolve symbol 'Callback'

Hi my friend,

I really love your work, but I have a problem.

As you suggested I wanted to customize the final callback by myself.

But when I add:

.callback(new KonamiCode.Callback() {
            @Override
            public void onFinish() {
                //whatever
            }
        })

It says "Cannot resolve symbol 'Callback'".

Can you help me?
What do I have to do?

Thanks a lot!!

Kind regards,
Felix

(Example what code looks like:)

protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        new KonamiCode.Installer(this)
                .on(this)
                .callback(new KonamiCode.Callback() {

                    public void onFinish() {

                        Toast toast = Toast.makeText(getApplicationContext(), "NERD!", Toast.LENGTH_SHORT);
                        toast.show();
                        
                    }
                })
                .install();

    }

Only A and START visible.

Button B is not visible inside the popup, only A and START is shown.

I have a RelativeLayout with one view for the game and one for banner ads. The konami code is added after the views are initialized.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.