I'm trying to make an app that you can controll the X position of the video acording to the values of Gyro/Compass. For example the left side of the video only apears on screen, and acording to the movementos of the phone the rest of the movie apears in screen.
I think that the easy thing to do is to create a View that is larger than your phone screen and then control the X value of the videoView, or something like that.
Does anyone have a idea how to do that? Should i use VideoView for this? What is the Best layout to use?
I think that i tried everything and cant make it work.
I will post one of my trys here to help understand what i'm trying to do.
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/absoluteLayout"
android:layout_width="3000dp"
android:layout_height="3000dp"
android:layout_x="-500dp" >
<VideoView
android:id="@+id/videoView"
android:layout_width="2000dp"
android:layout_height="1255dp"
android:layout_x="-279dp" />
</AbsoluteLayout>