I am working in android.
i have these two images:-

and

now using for loop i want to draw these image at run time. so please me how can i do this ?
means it will decided at run time that how many time these images should repeat.
finally i want to draw like this:–

but this ratio may change at run. please help me how can i do this. you may provide me some example to implement this.
Thank you in advance.
use a horizontal LinearLayout.
do the same for female image too..