0

I am setting a imgage in an ImageView. I want to scale down the image size without reducing the imageview size. Please guide me step by step.

2 Answers2

0

Use scaleType parameter for your imageviews and set the value to centerFit or centerCrop. More here: http://developer.android.com/reference/android/widget/ImageView.ScaleType.html

Aakash
  • 1,860
  • 19
  • 30
0

Taken from this link: source

You should also see android:adjustViewBounds to make the ImageView resize itself to fit the rescaled image. For example, if you have a rectangular image in what would normally be a square ImageView, adjustViewBounds=true will make it resize the ImageView to be rectangular as well. This then affects how other Views are laid out around the ImageView.

Community
  • 1
  • 1
SacreDeveloper
  • 1,253
  • 1
  • 9
  • 16