0

I'm trying to scale down an ImageView to be used in a relative layout as a listView row, but the image is just not resizing. Any ideas of what I could be missing?? 64 dip is much smaller than the original source.

<dimen name="friend_favorite_image_size">64dip</dimen>

    <ImageView
    android:id="@+id/friend_user_image"
    android:layout_width="@dimen/friend_favorite_image_size"
    android:layout_height="@dimen/friend_favorite_image_size"
    android:layout_alignParentRight="true"
    android:layout_marginRight="@dimen/friend_favorite_margin"
    android:scaleType="fitXY"
    android:adjustViewBounds="true"
    scr="@drawable/placeholder_user" />

    ImageView friendImage = (ImageView)rowItem.findViewById(R.id.friend_user_image);
    friendImage.setImageResource(R.drawable.placeholder_user);
Frank Sposaro
  • 8,511
  • 4
  • 43
  • 64

1 Answers1

0

Yes. Thanks for the posts. I believe I figure out my issue. The assets were cut with invisible padding in the images. Grrr. Ended up using hierarchyviewer to figure this out.

Frank Sposaro
  • 8,511
  • 4
  • 43
  • 64