openaphid / android-flip

A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android
http://openaphid.github.com/
2.84k stars 1.25k forks source link

Image disappear #118

Open charithjob opened 10 years ago

charithjob commented 10 years ago

when flip pages image disappear .how to stop that

Pkaran01 commented 8 years ago

i have also same problem have you find something. tell me thanks..

weepctxb commented 8 years ago

@CRUDTechnolgoy @charithjob I've also faced a similar issue. I am using a complex layout containing TextViews, an ImageView (loads online images) and a WebView. When the page flips the ImageView and WebView is empty. I have somehow mitigated this problem by doing three things:

  1. Setting a default image for the ImageView stored as a drawable to be displayed if there is a load error, no network+Internet connection and when it is still loading
  2. Increase private final int sideBufferSize in FlipViewController class
  3. Call for FlipViewController.refreshPage(View) after loading the WebView & ImageView The interesting thing is that the problem now is only limited to the first two pages, thereafter upon flipping beyond the first two pages and flipping back the problem is gone (changing sideBufferSize did not change the result).