0

I just want to use the horizontal scrollview of images like following.

https://github.com/ahmed-salaah/ASScrollView

Note:In that you will find the image getting blur at the time of scroll.

This demo is in IOS and i want to try this in android can anyone get an idea about how to achieve such kind of scollview of images.

Sagar Pilkhwal
  • 5,914
  • 2
  • 27
  • 78
Sachin
  • 47
  • 3
  • 9
  • you can hook-up a [swipe gesture](http://androidexample.com/Swipe_screen_left__right__top_bottom/index.php?view=article_discription&aid=95&aaid=118) listiner and then change the image of the image view. – Sagar Pilkhwal Sep 04 '14 at 13:01

1 Answers1

0

You can hook-up a swipe gesture listiner .
This post also talks about detecting swipe gesture.

For animation:

public static void ImageViewAnimatedChange(Context c, final ImageView v, final Bitmap new_image) { final Animation anim_out = AnimationUtils.loadAnimation(c, android.R.anim.fade_out); final Animation anim_in = AnimationUtils.loadAnimation(c, android.R.anim.fade_in); anim_out.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) {} @Override public void onAnimationRepeat(Animation animation) {} @Override public void onAnimationEnd(Animation animation) { v.setImageBitmap(new_image); anim_in.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) {} @Override public void onAnimationRepeat(Animation animation) {} @Override public void onAnimationEnd(Animation animation) {} }); v.startAnimation(anim_in); } }); v.startAnimation(anim_out); }

Community
  • 1
  • 1
Sagar Pilkhwal
  • 5,914
  • 2
  • 27
  • 78