thats my xml layout which I am using
<com.example.pinto.myapplication.myworkspace.MyScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.example.pinto.myapplication.myworkspace.MyLinearLayout
android:id="@+id/linearlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<com.example.pinto.myapplication.myworkspace.DragLayer
android:id="@+id/relative_view_drag1"
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="@android:color/holo_blue_dark">
</com.example.pinto.myapplication.myworkspace.DragLayer>
<com.example.pinto.myapplication.myworkspace.DragLayer
android:layout_margin="20dp"
android:id="@+id/relative_view_drag2"
android:layout_width="match_parent"
android:layout_height="600dp"
android:background="@android:color/holo_orange_dark">
</com.example.pinto.myapplication.myworkspace.DragLayer>
</com.example.pinto.myapplication.myworkspace.MyLinearLayout>
</com.example.pinto.myapplication.myworkspace.MyScrollView>
I hope this helps you with the hierarchy and let me know any changes that I need to do the layout that I have used are custom