1. Check out our app, Forums for Android! Download and leave feedback here!

Resize Icons

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

  1. Jacob Malliet

    Jacob Malliet Active Member
    Thread Starter
    36

    Jun 13, 2010
    29
    1
    36
    School :/
    Wisconsin
    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
     

    Advertisement

  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

Loading...