How To Display An Image Full Size With Imageview?
I have problem when I try to display the image with full size. I tried to display image with wrap_content. But it is smaller real image.
Solution 1:
add a scaleType
to your ImageView
<ImageViewandroid:scaleType="center"android:layout_width="wrap_content"android:layout_height="wrap_content"android:src="@drawable/screen1_logo" />
from the doc android:scaleType="center"
Center the image in the view, but perform no scaling.
Solution 2:
Try adding in xml file (ImageView properties) android:adjustViewBounds="true".
<ImageView
android:id="@+id/photoViewer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
Solution 3:
Try adding a scaleType attribute to your view:
android:scaleType=""
The available options can be found here:
http://developer.android.com/reference/android/widget/ImageView.ScaleType.html
Solution 4:
Please Define scale type as fitXY
<ImageView
android:id="@+id/yourImageViewId"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
Solution 5:
You are probably looking for scaleType
http://developer.android.com/reference/android/widget/ImageView.ScaleType.html
Post a Comment for "How To Display An Image Full Size With Imageview?"