mgolokhov / dodroid

May the knowledge be with you!
MIT License
20 stars 12 forks source link

Implement counters for wrong and right answers #23

Closed mgolokhov closed 8 years ago

mgolokhov commented 8 years ago

We use ViewPager with Fragments, so when current View is changed other (cached) Views should be notified.

Possible solutions:

Also counters should be moved to the global scope.

mgolokhov commented 8 years ago

screen shot 2015-11-17 at 10 00 43

green - right counter, red - wrong counter

Commit can be used as a trigger for notification, in that case it should be moved to the activity

mgolokhov commented 8 years ago

You can't set setOffscreenPageLimit(int) less than DEFAULT_OFFSCREEN_PAGES and DEFAULT_OFFSCREEN_PAGES = 1

mgolokhov commented 8 years ago

Temporary solution (every view will be recreated): @Override public int getItemPosition(Object object) { return POSITION_NONE; }