android - How to display an image full size with ImageView? -
i have problem when try display image full size. tried display image wrap_content. smaller real image.
<imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/screen1_logo" />
i go properties of image , see information: dimentions 211 x 74. try display image fixed width , height. see it's bigger.
<imageview android:layout_width="211px" android:layout_height="74px" android:src="@drawable/screen1_logo" />
right way? must fix size display image full size? please me explain , resolve problem.
add scaletype
imageview
<imageview android:scaletype="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/screen1_logo" />
from doc android:scaletype="center"
center image in view, perform no scaling.
Comments
Post a Comment