I want to get four images from a array but I need same position images from other array as like in example.
images = new int[] {
R.drawable.a, R.drawable.f, R.drawable.k,
R.drawable.u, R.drawable.y, R.drawable.w, R.drawable.t, R.drawable.g,
R.drawable.b, R.drawable.o
};
images2 = new int[] {
R.drawable.apple, R.drawable.fan,
R.drawable.kite, R.drawable.umbrells,
R.drawable.yark,R.drawable.watch, R.drawable.tap,
R.drawable.gun, R.drawable.ball, R.drawable.orange
};
I have now 2 arrays of 10 pictures. Now I need 5 images from same both arrays but randomly and same corresponding 5 images from other array.
As like I need
array1={R.drawable.a, R.drawable.w,R.drawable.o,R.drawable.g}
and same correspondence .
array2 = {R.drawable.apple, R.drawable.watch,R.drawable.orange,R.drawable.gun}