I need my list to hide and show using alternative strokes. Therefore, to hide the list on the left side of the screen, I use animation
Animation animation = new TranslateAnimation(-100, 0,0, 0); animation.setDuration(100); animation.setFillAfter(true); lv.startAnimation(animation); lv.setVisibility(0);
and to display am using
lv.setVisibility(View.VISIBLE);
My problem is that viewing the list does not hide. He will go left and return again. I do not know how to completely hide the list to the left. Please help to achieve this.
android android-listview android-view android-animation
AndroidOptimist
source share