RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(Statics.getScreenWidth() / 4, Statics.getScreenWidth() / 4); holder.imageViewThumbnail.setLayoutParams(layoutParams);
References
https://stackoverflow.com/questions/3144940/set-imageview-width-and-height-programmatically