1. Check out our companion app, Forums for Android! Download from Google Play

Resize Icons

Discussion in 'Application Development' started by Jacob Malliet, Jul 1, 2010.

  1. Jacob Malliet

    Jacob Malliet Active Member
    Thread Starter

    Jun 13, 2010
    School :/
    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


  2. 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).

Share This Page