Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make gooey menu closed when app opens #3

Open
jaikrishnangh opened this issue Feb 18, 2016 · 6 comments
Open

How to make gooey menu closed when app opens #3

jaikrishnangh opened this issue Feb 18, 2016 · 6 comments

Comments

@jaikrishnangh
Copy link

Whenever I start my app gooey menu opens automatically, it needs to be in closed state .. What I need to do ?

@squallsama
Copy link

nope. It doesn't work for me...

@squallsama
Copy link

MainActivity.java#

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.add_alarms1);
mGooeyMenu = (GooeyMenu) findViewById(R.id.gooey_menu);
mGooeyMenu.startHideAnimate();
mGooeyMenu.setOnMenuListener(this);
}

GooeyMenu.java#

public void startHideAnimate() {
    mRotationReverseAnimation.start();
    for (ObjectAnimator objectAnimator : mHideAnimation) {
        objectAnimator.start();
    }
}

@prashanthd
Copy link

prashanthd commented Jul 23, 2016

It is working in on item click listener but on start of activity it is not working.

@saeedkhalilnejad
Copy link

i have that problem too does any one can help?

@avik1q
Copy link

avik1q commented Jun 14, 2017

i have a half solution:

in GooeyMenu.java:

  public void startHideAnimateWhenItemClicked() {
        isMenuVisible = false;
      startHideAnimate();
  }

in MainActivity.java:

  public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_main, menu);
        mGooeyMenu.startHideAnimateWhenItemClicked();
        return true;
    }

this code close GooeyMenu when the app start (side effect you can see the app close)

@anshulagarwal2k
Copy link
Owner

anshulagarwal2k commented Jun 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants