• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Resize Icons

Hello, I am wondering how i would resize a drawable inside my application. I have a list of icons loaded from the device but they are all different sizes. I found LauncherActivity.IconResizer but it will not allow me to use this in my application.

Any help is appreciated and if more info is needed let me know. Thanks
 
If you're loading it as a drawable, you can use setBounds to change the size. If it's being used as part of a view, you can resize that view (e.g., with an ImageView, you can call setMaxWidth, setMaxHeight, and setScaleType as appropriate).
 
Back
Top Bottom