ScratchView sv = new ScratchView(this); LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); lp.setMargins(10, 10, 10, 10);

RelativeLayout rl = (RelativeLayout) findViewById(R.id.img_where1);
rl.addView(sv, lp);

RelativeLayout r2 = (RelativeLayout) findViewById(R.id.img_where2);
r2.addView(sv, lp);

RelativeLayout r3 = (RelativeLayout) findViewById(R.id.img_where3);
r3.addView(sv, lp);

이런식으로 할려고 하는데 1개 할때는 되는데 2개 이상 가면 에러가 뜨더라구요 혹시 방법이 있을까요?