<FrameLayout>

<LinearLayout>1</LinearLayout>

<LinearLayout>2</LinearLayout>

</FrameLayout>



프레임레이아웃 onTouchListener를 등록을 하고


ACTION_MOVE 할때마다 LinearLayout 2의 위치를 움직인 좌표만큼 옮기고 싶습니다.


layoutparams로 움직인 좌표만큼 marginLeft를 주고

linearlayout2.setLayoutParams(params);


이렇게 하면 퍽납니다.ㅠㅠ


아무리 생각해도 방법을 모르겠습니다.