Create a shape with image for avatar view.
dependencies {
compile 'io.github.Gleidson28:GNAvatarView:1.0.5'
}
<dependency>
<groupId>io.github.Gleidson28</groupId>
<artifactId>GNAvatarView</artifactId>
<version>1.0.5</version>
</dependency>
GNAvatarView avatarView = new GNAvatarView();
avatarView.setImage(new Image("smile.jpg"));