comment je peux mettre IM2 au bon endroitcomment placer une image sur un autre sur l'application android?
FrameLayout rv =(FrameLayout)findViewById(R.id.my_ph);
ImageView im1 = new ImageView(this);
im1.setBackgroundResource(R.drawable.lamp_on);
im1.layout(100, 100,120, 120);
rv.addView(im1);
ma mise en page
<FrameLayout android:id="@+id/my_ph" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/sketch" />
</FrameLayout>
je veux que IM1 sera au-dessus de la ImageView en position x, y
la question concerne l'emplacement (x, y) de la seconde image – eyalb