java - Android: Empty Image in ImageSwitcher -
I have an ImageSwitcher: XML: code: And on my onclick, I switch between some pictures if I add pictures to a click, it always shows a "blank / black" image between some pictures. I have an animation: But nothing else Do you know that there is such a "blank / black" image in image saver?
& lt ; ImageSwitcher Android: id = "@ + id / is" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: animateLayoutChanges = "true" & gt; & Lt; / ImageSwitcher & gt;
is.setFactory (New ViewFactory) {@Override Public View makeView () {// TODO Automatic Created Stub iv = New imageView (getApplicationContext ()); iv.setScaleType (ImageView.ScaleType.FIT_CENTER); iv.setLayoutParams (New ImageSwitcher.LayoutParams (LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); return iv;}});
in animation = animationUltimately Load animation (this, R. AnimationFrame left); Out of animation = animation utility. Load animation (this, R. anime. Autorat);
I solved the problem: Android: animateLayoutChanges = "true" has created a problem just to remove it; )
Comments
Post a Comment