how i can put im2 in the correct place
FrameLayout rv =(FrameLayout)findViewById(R.id.my_ph); ImageView im1 = new ImageView(this); im1.setBackgrou
In layout add one more ImageView and align Top, Bottom, Right, Left to first one. Make it invisible;
Then in code:
ImageView image2 =(ImageView)findViewById(R.id.image2); image2.setVisibility(View.VISIBLE); image2.setImageResource(R.drawable.my_image);