How can I programmatically set adjustViewBounds to true in Android?

Fanria picture Fanria · Aug 23, 2011 · Viewed 9.3k times · Source

I want to set adjustViewBounds property of my ImageView to true, programmatically, not in XML. How can this be done?

Answer