title: How do I create a circle using hdodenhof:circleimageview (Android studio)
body: <p>I have used the library ´implementation 'de.hdodenhof:circleimageview:2.2.0'<code>to Crete a circle out of an</code>image View<code>, replacing the</code>imageView<code></code>xml` code with this: </p>
  
  <pre><code>&lt;de.hdodenhof.circleimageview.CircleImageView
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/iconHolder1"
      android:layout_width="70dp"
      android:layout_height="0dp"
      android:background="@color/chapter1"
      android:elevation="3dp"
      android:scaleType="centerCrop"
      android:src="@drawable/icon1"
      app:layout_constraintBottom_toBottomOf="@+id/chapter1"
      app:layout_constraintStart_toStartOf="@+id/chapter1"
      app:layout_constraintTop_toTopOf="@+id/chapter1"
      app:civ_border_width="1dp"
      app:civ_border_color="@color/colorPrimary"
       /&gt;
  </code></pre>
  
  <p>But it doesn't clip away the corners. It just creates a circle around the image like this: <a href="https://i.stack.imgur.com/TeUBa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TeUBa.png" alt="enter image description here"></a></p>
  
  <p>How do I remove all the color outside of the circle border? Has anyone used this library or a similar one, or know a better way to solve this?</p>