In Stackview, it seems that OnItemSelectedListener (from superclass "AdapterView") is never called... How can I trigger some event when the view on top of the stack is changed by the user ?
I want to display some text to show the position of the current item inside the stack, so I need to find a way to update the textview when the user browses through the stack.
Thanks,
What i have done is writing a new class extending StackView and writing some code to get the OnItemSelected logics works. When the onTouchEvent gives me a MotionEvent.getAction() == ACTION_UP, i start a Thread that calls himself 'till the StackView.getDisplayedChild() changes. When it changes, i start the OnItemSelected logic, so i can always get the first displayed child.
This thread cycles himself untill he gets the new displayedChild:
This Listener instead sets the Selected flag to true after deselecting them all.
I've tested it a little and it works..