1. Download our Official Android App: Forums for Android!

Apps Resize Icons

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

  1. Jacob Malliet

    Jacob Malliet Newbie
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    29
    Joined:
    Jun 13, 2010

    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. IanGClifton

    IanGClifton Well-Known Member
    Rank:
    None
    Points:
    58
    Posts:
    111
    Joined:
    Feb 7, 2010

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