Set photo size first in the maker list

This commit is contained in:
Jimmy Shih
2013-12-05 14:57:39 -08:00
parent d52715c513
commit 5a40b83065
@@ -77,12 +77,14 @@ public class ListItemUtils {
textGradient.setVisibility(hasPhoto ? View.VISIBLE : View.GONE);
if (hasPhoto) {
int photoHeight = getPhotoHeight(activity);
photo.getLayoutParams().height = photoHeight;
photo.setImageResource(android.R.color.transparent);
Display defaultDisplay = activity.getWindowManager().getDefaultDisplay();
PhotoUtils.setImageVew(
photo, Uri.parse(photoUrl), defaultDisplay.getWidth(), getPhotoHeight(activity), false);
photo, Uri.parse(photoUrl), defaultDisplay.getWidth(), photoHeight, false);
}
// Set icon
if (isRecording) {
iconId = isPaused ? R.drawable.ic_track_paused : R.drawable.ic_track_recording;