GooeyMenu icon indicating copy to clipboard operation
GooeyMenu copied to clipboard

How to make gooey menu closed when app opens

Open jaikrishnangh opened this issue 9 years ago • 6 comments

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

jaikrishnangh avatar Feb 18 '16 07:02 jaikrishnangh

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

squallsama avatar May 28 '16 21:05 squallsama

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();
    }
}

squallsama avatar Jul 16 '16 19:07 squallsama

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

prashanthd avatar Jul 23 '16 13:07 prashanthd

i have that problem too does any one can help?

saeedkhalilnejad avatar Aug 07 '16 10:08 saeedkhalilnejad

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)

avik1q avatar Jun 14 '17 06:06 avik1q

Hi Avik,

You must check out belore branch link for hide menu. https://github.com/anshulagarwal06/GooeyMenu/tree/menu_hide

Thanks

On Wed, 14 Jun 2017 at 11:38 avik1q [email protected] wrote:

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)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anshulagarwal2k/GooeyMenu/issues/3#issuecomment-308329026, or mute the thread https://github.com/notifications/unsubscribe-auth/AJDgKLbuVCqpU7sXnHtWNeDPKhCSbkqgks5sD3jSgaJpZM4Hc0G8 .

anshulagarwal2k avatar Jun 14 '17 06:06 anshulagarwal2k