Skip to content Skip to sidebar Skip to footer

Set Extended Imageview Width And Height Programatically - Android

I have a custom class that extends ImageView that I'm programatically putting on to a RelativeLayout. I want each one of these images to be a specific width and height. I've trie

Solution 1:

You probably need to tell the ImageView how to scale. Try using ImageView#setScaleType.


Post a Comment for "Set Extended Imageview Width And Height Programatically - Android"