I have a 32 X 32 png image which I set as the src of ImageButton. When I set
the maxHeight of imageButton to 20 the image didn't scale down. How do I
tell the ImageButton to scale down the image?

Here's my image button definition:

<ImageButton android:id="@+id/button1"
            android:layout_width="wrap_content"
android:layout_height="wrap_content"
            android:maxWidth="20px" android:maxHeight="20px"
            android:adjustViewBounds="true"
            android:scaleType="fitXY"
            android:src="@drawable/icon1"
            />
-- 
Kind Regards,
Ren

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to