I Had some imageViews in a horizontal scroll view . Image Views changes on some event. It has a Background Image say, blue.png and image src black.png which is in front. i want the image source to be invisible on an event, not Imageview to be on Gone or in Invisible state, i want to keep the imageView as its. As the background also goes invisible. if i change the state View.GONE/INVISIBLE.
Issue i face:
Drawable mDrawable = getResouces().getDrawable(R.drawable.black);
//When i scroll foreward to make it go invisible, i do this:
imgViewObj.setImageDrawable(null);
When i scroll Backward to make it visible, i do this:
imgViewObj.setImageDrawable(mDrawable);
problem is while removing or setting image there's a glitch the view stuck for a moment like stutter , image changes & then scroll normally. Glitch occurs every time on image change While Scrolling;
How do i fix Scrolling, it should be same even if the image Changes. Is there any better way to do this.?
0 comments:
Post a Comment