1

My goal is to create a view larger than the devices screen that the user can navigate in, and where i can position imageview based on a coordinate:

enter image description here

I have tried creating a layout within a HorizontalScrollView and VerticalScrollView, as shown here:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:scrollbars="vertical">

    <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="320px" android:layout_height="fill_parent">

        <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/linlay" android:layout_width="320px"
            android:layout_height="fill_parent" android:stretchColumns="1"
            android:background="#000000"/>

    </HorizontalScrollView>

</ScrollView>

The problem with that is that it only allows scrolling in 1 direction at the time.

Is there are way to obtain free movement on all axes and have the view in a coordinate system so that other views can be placed on or off the screen ?

Community
  • 1
  • 1
JPJens
  • 1,185
  • 1
  • 17
  • 39
  • try to check this answer: http://stackoverflow.com/questions/9398057/android-move-a-view-on-touch-move-action-move – Codey Mar 26 '17 at 10:42

0 Answers0