google / hover

A floating menu library for Android.
Apache License 2.0
2.64k stars 284 forks source link

create new tab programmatically after menu had been created with a tab #57

Open abselt opened 7 years ago

abselt commented 7 years ago

I'm useing kitchensink sample to make something like facebook messenger, so when Cloud notification recived i fire DemoHoverMenuService.showFloatingMenu(getBaseContext(),user_id); and there will be

private HoverMenu createHoverMenu() {
        try {
            mDemoHoverMenu = new DemoHoverMenuFactory().createDemoMenuFromCode(uid, getContextForHoverMenu(), Bus.getInstance());
        }
}

but its like nothing hapen i think the menu being created again instead of update it with the new id tap. so how this should be done BS: Tons of thank for making this

matthew-carroll commented 6 years ago

@abselt does the application that you're working on have permission to display an overlay? Please check the app settings to be sure and then let me know.

matthew-carroll commented 6 years ago

@abselt maybe I misunderstood what you meant. Are you trying to add a new tab to a Hover menu that is already visible? Or are you trying to launch a new Hover menu entirely?

abselt commented 6 years ago

"add a new tab to a Hover menu that is already visible" Yes exactly. the menu created successfully but I was not able to add more tabs.