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

redraw satellite items #21

Open
adam1liukuro opened this issue May 17, 2014 · 0 comments
Open

redraw satellite items #21

adam1liukuro opened this issue May 17, 2014 · 0 comments

Comments

@adam1liukuro
Copy link

I want to redraw the items so it can display which item is selected
I changed the addItems function from the library to reset the menuitems every time, so it won't be adding more and more items .

This is my code

initarc(menu_x,"x");
menu_x.setOnItemClickedListener(new SateliteClickedListener() {
public void eventOccured(int argx) {
initarc(menu_x,"x");
}
});

initarc is the function to add items and determine which item is selected so it will display a different icon

the problem is when i click an item, the main satellite is unclickable anymore
(no action when clicked)
but then if I press home and resume the app, then the items are displayed.

something is wrong when adding items from the itemclicklistener, because if i call initarc twice without the listener everything works fine.

Really need some help here!
Thanks.

samigehi added a commit to samigehi/android-satellite-menu that referenced this issue Apr 1, 2015
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

1 participant