Closed GoogleCodeExporter closed 8 years ago
Here's another observation:
I created a descendant of CardScrollView. From its constructor, I do...
setOnItemSelectedListener(myItemSelectedListener); // myItemSelectedListener is NOT null
OnItemSelectedListener listener = getOnItemSelectedListener();
listener is null...
Original comment by eug...@wearableintelligence.com
on 8 Jan 2014 at 11:14
This does seem inconsistent with other subclasses of AdapterView, which do fire
listeners for programmatic selection changes. For now, the best workaround
would be to factor out the code that handles the selection into a separate
method and manually call it after calling setSelection.
Original comment by allev...@google.com
on 9 Jan 2014 at 4:46
After testing, I've been unable to duplicate this. onItemSelected does get
called when I call setSelection, whether I use a subclass of CardScrollView
that sets the listener in its constructor, or if I use CardScrollView itself
and set it outside. Can you provide some more code so that we can see if
there's anything else that might be wrong?
Original comment by allev...@google.com
on 9 Jan 2014 at 5:05
Are you testing xe12?
Original comment by eug...@wearableintelligence.com
on 9 Jan 2014 at 5:10
Yes. Can you post more context around where you're creating and setting up the
card scroller?
Original comment by allev...@google.com
on 9 Jan 2014 at 5:38
My bad! I overrode setOnItemSelectedListener
Original comment by eug...@wearableintelligence.com
on 9 Jan 2014 at 6:18
[deleted comment]
You can close the issue
Original comment by eug...@wearableintelligence.com
on 9 Jan 2014 at 6:34
Original comment by ala...@google.com
on 4 Feb 2014 at 12:18
Original issue reported on code.google.com by
eug...@wearableintelligence.com
on 8 Jan 2014 at 10:56