-5

I am planning to build this kind of a image view in android i could use your help in how to get started.

enter image description here

enter image description here

Aniruddha K.M
  • 7,361
  • 3
  • 43
  • 52

2 Answers2

0

Extract from another SO thread

See this coverflow widget, It's works like a listView so it is very simple to use :

http://www.inter-fuser.com/2010/01/android-coverflow-widget.html

Steps :

  • Import library classes on your classpath
  • Instead of ListView, use CoverFlow
  • Write your coverflowAdapter, here it will contains only images (see sample code from link)
  • Set the adapter to your coverflow

Hope it helps !

Community
  • 1
  • 1
Shiv
  • 689
  • 8
  • 23
-2

Its called Carousel

See this: carousel layout android

If you want 3 D Carousel, you can see this post

You would need to create a custom class for your images, which extends ImageView.

EXAMPLE:

public class CarouselImageView extends ImageView 
    implements Comparable<carouselimageview> {

    private int index;
    private float currentAngle;
    private float x;
    private float y;
    private float z;
    private boolean drawn;

    public CarouselImageView(Context context) {
        this(context, null, 0);
    }   

    public CarouselImageView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public CarouselImageView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public int compareTo(CarouselImageView another) {
        return (int)(another.z – this.z);
    }

}

You can customize the code as per requirement as to make a horizontal carousel or the vertical one.

Hope this helps.

MysticMagicϡ
  • 28,593
  • 16
  • 73
  • 124