Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Using .png file #140

Open
luccastanan opened this issue Feb 17, 2016 · 1 comment
Open

Using .png file #140

luccastanan opened this issue Feb 17, 2016 · 1 comment

Comments

@luccastanan
Copy link

I'm trying to use an image in .png, but when I flip the background is white, what should I do?

@luccastanan luccastanan changed the title Change "setZorderOnTop(true)" to false Using .png file Feb 18, 2016
@weepctxb
Copy link

If you do not want a transparent/translucent screen while flipping you may have to set android:background="#ffffff" for your FlipView container.
Alternatively, you may have meant that the image is not in the screenshot during the flipping action, which occurs because the . I temporarily worked around the issue by using a loading image which solves the issue most of the time:
[ImageView ID].setDefaultImageResId(R.drawable.[loading_default]); // loading image
[ImageView ID].setErrorImageResId(R.drawable.[offline_default]); // error image
Also increase the buffer size by changing this in FlipViewController.java:
private final int sideBufferSize = [>1];
Some other ideas I had were to refresh all the screenshots again once all the views are loaded or just before flipping but I haven't tried them yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants