Resize Icons


Last Updated:

  1. Jacob Malliet

    Jacob Malliet Active Member This Topic's Starter

    Joined:
    Jun 13, 2010
    Messages:
    29
    Likes Received:
    1
    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

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    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...