Java tutorial
//package com.java2s; import android.widget.ImageView; import android.widget.LinearLayout; public class Main { public static void addDot2Layout(LinearLayout ll_dot, ImageView[] ivDots) { for (ImageView iv : ivDots) { ll_dot.addView(iv); } } }