Tuesday, August 5, 2014

Android ListView view is gone but still receive onClick


Android ListView view is gone but still receive onClick
I have faced one issue  View.Gone but still view covered area clickable and touchable .
Problem
set animation for list view sliding up and down .
Button on click  view  is visible with setFillAfter(trueand Item on click View is GONE but i faced one  problem view Gone area still clickable
TranslateAnimation slide = new TranslateAnimation(0, 0,
-1000, 0);
slide.setFillAfter(true);
or 
slide.setFillEnabled(true);

Solution :
slide.setFillAfter(false);
or 
slide.setFillEnabled(false);

then its working fine

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...