@Override public void onSuccess(){
  if (measuredHeight <= 0)   measuredHeight=itemContainer.getMeasuredHeight();
  ViewGroup.LayoutParams params=giveawayImage.getLayoutParams();
  params.height=measuredHeight;
}

@ Override public void onSuccess ( ) { if ( measuredHeight <= 0 ) measuredHeight = itemContainer . getMeasuredHeight ( ) ; ViewGroup . LayoutParams params = giveawayImage . getLayoutParams ( ) ; params . height = measuredHeight ; }
we manually set the height of this image to fit the container .
