Here is the list of custom-made rounded images. need to dynamically assign a value through the loop.
RoundedImageView img23 = (RoundedImageView) findViewById(R.id.avatar23);
img23.setImageResource(R.mipmap.avatars_male_28);
RoundedImageView img24 = (RoundedImageView) findViewById(R.id.avatar24);
img24.setImageResource(R.mipmap.avatars_male_29);
RoundedImageView img25 = (RoundedImageView) findViewById(R.id.avatar25);
img25.setImageResource(R.mipmap.avatars_male_30);
for (i = 1;i>25; i++){
j=(String) i;
//need a loop that dynamically sets img**2** (any number)
img<j>.setImageResource(R.mipmap.avatars_male_30);
}
List<RoundedImageView>and then iterate your list. easy,fast :)