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

Disable ListView items click event in Relative Layout (balloon screen) #8

Closed
charlesfranciscodev opened this issue Feb 5, 2016 · 3 comments

Comments

@charlesfranciscodev
Copy link

When I click on the hidden list view items on the balloon screen, a toast is shown with the menu number that was selected. How can I disable click/touch events on the overlaying screen ?

@charlesfranciscodev charlesfranciscodev changed the title Disable ListView items click event in Relative Layout (ballon screen) Disable ListView items click event in Relative Layout (balloon screen) Feb 8, 2016
@charlesfranciscodev
Copy link
Author

In other words, where should I call
listview.setEnabled(false);
to disable the listview when the panel is in closed position (balloon screen)
and this
listview.setEnabled(true);
to enable the listview when the panel is in open position (stars screen)
It works in closePane() for disabling but not in openPane().

Where should I disable the listview ? In other words, which function is called when the panel is opened to show the stars screen with the lsit view ?

@kyze8439690
Copy link
Owner

I have tried to implement the function you required but I failed.
First of all, setEnabled() will cause UI change such as drawable state changed, if call setEnabled(false) when menu is invisible, it may cause some ui issue.
And I can not decide whether to pass touch event to the menu or not because click event is a view internal function, I have to implement the whole click event detect system.
There is two suggestion:

  1. You can put a click event block view (such as ListView) in the main ui, and it will block all click event if your finger is on it.
  2. If ListView is not you target solution, you can use PanelSlideListener to listen panel state change, and block OnItemClickListener in the menu.

@charlesfranciscodev
Copy link
Author

Thanks for the help.

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

2 participants