Changing the appearance of a custom android checkbox without the image scaling?
Posted
by Joren
on Stack Overflow
See other posts from Stack Overflow
or by Joren
Published on 2010-04-27T03:17:05Z
Indexed on
2010/04/27
3:23 UTC
Read the original article
Hit count: 581
I have a custom checkbox with these attributes:
android:id="@+id/map_toolbar_details"
android:layout_width="80px"
android:layout_height="106px"
android:scaleType="center"
macro:selectedResource="@drawable/map_toolbar_details_selected"
android:button="@drawable/map_toolbar_details"
When I load it up, the image gets stretched, even though it's set to scaleType center. If I set a background, I do not have this problem.
© Stack Overflow or respective owner