현재 제가
absoulelayout을 이용해서
imageview 3개를 띄우고
아래와 같은 형식으로 드래그 시 움직일 수 있게 하였습니다.
case MotionEvent.ACTION_MOVE:
viewXX = viewXX + (int)event.getX() - (me2.getWidth()/2);
viewYY = viewYY + (int)event.getY() - (me2.getHeight()/2);
LayoutParams laypam = new LayoutParams (me2.getWidth(), me2.getHeight(), viewXX, viewYY) ;
me2.setLayoutParams(laypam);
break;
}//end switch
근데 xml 에서 보듯
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/me" android:layout_x="200px"
android:layout_y="200px" android:layout_width="200px"
android:layout_height="200px" android:src="@drawable/pic" />
<ImageView android:id="@+id/me2" android:layout_x="100px"
android:layout_y="400px" android:layout_width="200px"
android:layout_height="200px" android:src="@drawable/icon" />
<ImageView android:id="@+id/me3" android:layout_x="200px"
android:layout_y="300px" android:layout_width="200px"
android:layout_height="200px" android:src="@drawable/state" />
</AbsoluteLayout>
위와같이 이미지가 차례대로 선언되어 있는데
당연히 마지막 imageview가 다른 이미지 와 겹칠때 맨 위에 놓이게 되고 나머지가 그 뒤로 깔리게 되더라구요
이따 밑에 있는 이미지를 클릭했을때 최상위로 올라오는 속성이나 api가 있는지
어떻게 해야되는지 좀 조언부탁드립니다.



