i have couple of imageViews that i create programmatically, so here is my question, if i want to put one imageView on the other, how can i tell my app which imageView is going to be on top, and which one on the bottom ? This is how i create ImageViews, and that works fine.
image = new ImageView(this);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);
image.setScaleType(ImageView.ScaleType.MATRIX);
image.setImageResource(R.drawable.ic_launcher);
image.setId(1);
params.setMargins(0, 0, 0, 0);
Let's get the root layout and add our ImageView
((ViewGroup) mainLayout).addView(image, params);