java - Android: Empty Image in ImageSwitcher -


itemprop = "text">

I have an ImageSwitcher:

XML:

  & lt ; ImageSwitcher Android: id = "@ + id / is" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: animateLayoutChanges = "true" & gt; & Lt; / ImageSwitcher & gt;  

code:

  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;}});  

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:

  in animation = animationUltimately Load animation (this, R. AnimationFrame left); Out of animation = animation utility. Load animation (this, R. anime. Autorat);  

But nothing else Do you know that there is such a "blank / black" image in image saver?

I solved the problem: Android: animateLayoutChanges = "true" has created a problem just to remove it; )


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -