android-flip icon indicating copy to clipboard operation
android-flip copied to clipboard

Flash screen when move to previous view at FlipView first time to show

Open yyonghe opened this issue 11 years ago • 3 comments

When i set non-zero selection index for a flipview like:

flipView.setSelection(5);

in an Activity. Then when i open this Activity at the first time, i move to previous view(the fourth view in this flipView, not next view). There is a flash screen occured. The flipView will show the previous view (the fourth view) shortly.

yyonghe avatar Jun 12 '13 08:06 yyonghe

i've found some problem.

private final LinkedList<View> bufferedViews = new LinkedList<View>();

maybe we need keep this field thread safty.

yyonghe avatar Jun 12 '13 12:06 yyonghe

in method: void com.aphidmobile.flip.FlipViewController.flippedToView(int indexInAdapter, boolean isPost)

we needn't to call:

updateVisibleView(bufferIndex);

I removed this call in flippedToView() method, and everything works fine.

yyonghe avatar Jun 12 '13 12:06 yyonghe

it's not working bro i tried.?

& i have also issue with images.

Pkaran01 avatar Dec 11 '15 13:12 Pkaran01