dependencies {
compile 'it.sephiroth.android.library.imagezoom:imagezoom:+'
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/topic_avatar"
android:src="@drawable/loading"
android:background="@drawable/topic_image_border"
android:scaleType="fitXY"
app:riv_oval="false"
app:riv_tile_mode="repeat"
app:riv_corner_radius="5dp"
android:layout_marginLeft="10dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_width="60dp"
android:layout_height="60dp" />
</RelativeLayout>
private void initView(Bitmap loadedImage) {
topicAvatar = (ImageView) findViewById(R.id.topic_avatar);
topicAvatar.setImageBitmap(loadedImage);
}