[Solved] I want to achieve something like multiple circularimageview’s overlapping each other, just like the google plus community page [closed]


Take the imageview 100X100 its all about the layout margin:
You can use margin like this:

  <FrameLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >
    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_gravity="center"
        android:layout_marginRight="100dp"
        android:src="https://stackoverflow.com/questions/43046074/@drawable/samplepic" />

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_gravity="center"
        android:layout_marginRight="50dp"
        android:src="https://stackoverflow.com/questions/43046074/@drawable/samplepic" />



    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_marginLeft="100dp"
        android:layout_gravity="center"
        android:src="https://stackoverflow.com/questions/43046074/@drawable/samplepic" />

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_marginLeft="50dp"
        android:layout_gravity="center"
        android:src="https://stackoverflow.com/questions/43046074/@drawable/samplepic" />

    <de.hdodenhof.circleimageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_gravity="center"
        android:src="https://stackoverflow.com/questions/43046074/@drawable/samplepic" />

</FrameLayout>

for the circular image you can add this in gradle

compile ‘de.hdodenhof:circleimageview:2.1.0’

solved I want to achieve something like multiple circularimageview’s overlapping each other, just like the google plus community page [closed]