Remove "app:border_color="#FF000000"" from the header file and replace it with
app:civ_border_width="2dp" app:civ_border_color="#FF000000
The corrected code should look like this:
`
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="76dp"
android:layout_height="76dp"
android:src="@drawable/profile"
app:civ_border_width="2dp"
app:civ_border_color="#FF000000"
android:layout_marginLeft="24dp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginStart="24dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/item_title"
android:textSize="14sp"
android:textColor="#FFF"
android:textStyle="bold"
android:gravity="start"
android:paddingBottom="4dp"
android:id="@+id/username"
android:layout_above="@+id/email"
android:layout_alignLeft="@+id/profile_image"
android:layout_alignStart="@+id/profile_image" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/email_hint"
android:id="@+id/email"
android:gravity="left"
android:layout_marginBottom="8dp"
android:textSize="14sp"
android:textColor="#fff"
android:layout_alignParentBottom="true"
android:layout_alignLeft="@+id/username"
android:layout_alignStart="@+id/username" />
`
Also add add the following dependency to your app build.gradle:
dependencies{ ... compile 'de.hdodenhof:circleimageview:2.1.0' }
Remove "app:border_color="#FF000000"" from the header file and replace it with
app:civ_border_width="2dp" app:civ_border_color="#FF000000The corrected code should look like this:
`
`
Also add add the following dependency to your app build.gradle:
dependencies{ ... compile 'de.hdodenhof:circleimageview:2.1.0' }