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" /> 

enter image description here

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" /> 

imageview wrap_content 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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -