Closed jakobmoellers closed 11 years ago
This should be possible with a SimpleExpandableListAdapter: http://developer.android.com/reference/android/widget/ExpandableListView.OnGroupClickListener.html
Okay @dwilhelm89 found the solution. Thanks! I will implement the long click to edit, upload and delete single tracks tomorrow or so. This might also be interesting for the map... maybe we can also start the map view with the long click. @ChristopherStephan what do you think about that?
fixed d5a3e5767a2f37b02ed0524f23b40ed9327c88a3
You can implement the following:
elv.setOnItemLongClickListener(new OnItemLongClickListener() {
The problem is: the position is different when the item is expanded or not! So if you extend an item, the next one will have a position that is increased by 1. Can we omit that?
This is crucial to select items, edit tracks and start the map view with the correct track!