mulhearn22
Lurker
Hi,
I have a ViewFlipper. All is well, except between my first and last view is a solid black screen that I didn't add. Anyone have any ideas on why this is and how to get rid of it?
Code to populate ViewFlipper:
Code to change the view:
Any help would be awesome!
TIA,
Matt
I have a ViewFlipper. All is well, except between my first and last view is a solid black screen that I didn't add. Anyone have any ideas on why this is and how to get rid of it?
Code to populate ViewFlipper:
Code:
private void buildImageViews() {
for (Integer x = 0; x < _imgPointers.length; x++) {
ImageView i = new ImageView(this);
i.setId(x);
setImage(i, x);
_flipper.addView(i);
}
}
Code:
private void changeImage(boolean next) {
if (next) {
_flipper.setOutAnimation(outToLeftAnimation());
_flipper.setInAnimation(inFromRightAnimation());
} else {
_flipper.setOutAnimation(outToRightAnimation());
_flipper.setInAnimation(inFromLeftAnimation());
}
// slide the images
if (next) {
_flipper.showNext();
} else {
_flipper.showPrevious();
}
}
TIA,
Matt