Related videosHow To Use Java In Firefox - The Easiest Way To Enable Java In Mozilla Firefox [BEGINNER'S TUTORIAL]
GitHub is home to over 31 million jxtaskpane firefox working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already jxtaskpane firefox GitHub? Sign in to your account. Hi, I'm trying to find a way to collapse all the expanded parent item when another one is expanding.
Is it possible? This is in principle doable i've done that in version 1. The easiest way would be to use the version suggested by paul-turner at my other issue jxtaskpane firefox Do not use the ontouch listener cuz it was just a workaround. With this solution seems like when a click occurs on an expanded parent item, the expanded parent is not collapsing anymore. It collapse only when the click occurs on one of the others collapsed parent.
I guess its due to the effect of callapsing all items while one — the current one — is also collapsing. I've not looked at the library code but i guess the lib code is toggling instead of following the "real" ogdru jahad i and setting it expanded or collapsed. Some kind of race condition i would say. So to avoid this, you simply collapse all parents but the current one being clicked on. This works for me:. I think my problem is that I have more than one children under a parent and this could lead to a jxtaskpane firefox indexing of the parents.
Right now I've 4 parents and 8 children for every parent. The logcat tells me that the lenght of the mItemList is 12 instead of 4, beacuse I've opened the first parent and the array add the 8 children to the mItemList. I have check when scroll with expand view then list size increase by 1 automatically.
I have modify in your code and its working fine. Below is a quick solution. The issue lies in the call to collapse all, this changes the view of item we are about to expand to think it is collapsed even though it isn't. I'd recommend keeping track of the last expanded item instead. We are thinking of making this a "mode" of expansion for the library, so all you have to do is set the mode when creating the adapter and we will take care of only jxtaskpane firefox one expanded at the time.
For now the below should fill your needs. Closing this for now, will create a new issue for tracking the ideas of expand jxtaskpane firefox for the library. Hi paul-turner. Everything works fine but after i jxtaskpane firefox the application, change the device configuration to landscape and switch to another application there was an error occurred related to ArrayIndexOutOfBound in the mExpandableAdapter. Caused by: Invalid index 20, size is 20 at com. I just tested it jxtaskpane firefox, thing a bit different, When I put your code things work fine even i change device configuration and browse around however after a while of running by changing back and forth the applications.
The same error occurred. I think the out of bound part was the problem. Invalid index 20, size is 20 Jxtaskpane firefox is only 20 objects, jxtaskpane firefox I suppose the start index is 0.
NsAveek Can you be more specific with what issue you are seeing. Please open a new issue if you are seeing a bug. This issue is just a question with suggested answers. Following htooaunghlaingi just adjust scroll position like pythoneer answer and its work fine.
Skip to content. Dismiss Join GitHub today GitHub is home to over jxtaskpane firefox million developers working together to host and review code, manage projects, and build software together.
Sign up. New issue. Copy link Quote reply. This comment has been minimized. Sign in to view. I'm tha pernao kala something wrong? This works for me: That didn't work for me. Hi paul-turner I used the code you provided in my MyExpandableAdapter. When i don't use your code, things work fine. Hi guys, I have the same issue, that occurs when there is already a child expanded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Press h to open a hovercard with more jxtaskpane firefox.