How to make gooey menu closed when app opens
Opened this issue · 6 comments
jaikrishnangh commented
Whenever I start my app gooey menu opens automatically, it needs to be in closed state .. What I need to do ?
squallsama commented
nope. It doesn't work for me...
squallsama commented
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 commented
It is working in on item click listener but on start of activity it is not working.
saeedkhalilnejad commented
i have that problem too does any one can help?
avik1q commented
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 commented
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 ***@***.***> 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
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJDgKLbuVCqpU7sXnHtWNeDPKhCSbkqgks5sD3jSgaJpZM4Hc0G8>
.