This question has already been answered:

How to make a round imageView?

Reported as a duplicate by pavlofff android Feb 13 '17 at 6:52 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    2 answers 2

    There is a library CircleImageView . Also, some image loader can make different forms for images, for example, Fresco

    • and how to connect this CircleImageView library, please tell me if it's not difficult - user215435
    • in the build.gradle file, which is located in the app module, add the line compile 'de.hdodenhof to the dependencies section: circleimageview: 2.1.0' - pavel163
    • @MisterX If you bother to read help to this library, then everything is written there - both how to connect and how to use. - pavlofff

    Using CardView with a corner radius and ImageView inside:

    <android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_height="match_parent" app:cardCornerRadius="8dp" android:layout_margin="5dp" android:elevation="10dp"> <ImageView android:id="@+id/roundedImageView" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/image" android:background="@color/white" android:scaleType="centerCrop" /> </android.support.v7.widget.CardView>