I have tried to change ProfilePictureView to circle image with drawable. But it is not working.
Here is my xml for ProfilePictureView
<com.facebook.login.widget.ProfilePictureView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/profilePicture" />
Here is my drawable file circle.xml
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="#666666"/>
<size
android:width="120dp"
android:height="120dp"/>
</shape>
Here is the function
profilePictureView = view.findViewById(R.id.profilePicture);
profilePictureView.setProfileId(userId);
profilePictureView.setBackgroundResource(R.drawable.circle);