I am using ImageView to show picture. However, for some pictures, the boundary of ImageView is bigger than the picture although i have set it as wrap_content. For example,
Here is my xml.
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:src="@drawable/image_16"
android:layout_centerInParent="true" />
How can i make sure the boundary is same size as the image?