How to open an image in the original size inside an ImageView?

2

I have some images inside imageView, and I needed to open these images at the original size when I clicked on them. Does anyone know how to do this? Thank you in advance.

    
asked by anonymous 19.01.2016 / 14:43

2 answers

3

Place this property in your ImageView

  

android: scaleType="center"

Information about ScaleType .

    
19.01.2016 / 14:51
2

The attributes defined in ImageView will determine the size of the image. The way it is displayed, scaled, or trimmed will depend on the android:scaleType attribute.

However, when you want to display in the original size the attributes that define the length and width must be declared as wrap_content

android:layout_width="wrap_content"
android:layout_height="wrap_content"
    
19.01.2016 / 15:38