ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / Examples / Android / ardrone / project / res / layout / main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3         android:orientation="vertical" android:layout_width="fill_parent"
4         android:layout_height="fill_parent">
5
6         <!--
7                 Here is where we put the SurfaceView, in a frame so that we can stack
8                 other views on top of it.
9         -->
10         <FrameLayout android:layout_width="fill_parent"
11                 android:layout_height="0px" android:layout_weight="1">
12
13                 <com.parrot.ARDrone.DemoGLSurfaceView android:id="@+id/glsurfaceview"
14                         android:layout_width="fill_parent" android:layout_height="fill_parent" />
15
16                 <RelativeLayout  android:id="@+id/layoutView"
17                         android:layout_width="wrap_content" android:layout_height="wrap_content"
18                         >
19
20                         <com.parrot.ARDrone.RotatedButton android:id="@+id/takeOffButton"
21                             android:text="Take off"
22                                   android:layout_width="80dp" 
23                                   android:layout_height="wrap_content"
24           android:layout_alignParentRight="true"
25           android:layout_alignParentTop="true">
26                                 </com.parrot.ARDrone.RotatedButton>
27
28         <!--   com.parrot.ARDrone.RotatedButton android:text="Use Acc" 
29           android:id="@+id/useAccSteeringButton"
30           android:layout_width="80dp" 
31           android:layout_height="100dp"
32            android:layout_alignParentRight="true"
33            android:layout_centerInParent="true">
34         </com.parrot.ARDrone.RotatedButton -->
35                                 
36         <com.parrot.ARDrone.RotatedButton android:text="Halt" 
37           android:id="@+id/emergLandingButton"
38           android:layout_width="80dp" 
39           android:layout_height="wrap_content"
40            android:layout_alignParentRight="true"
41           android:layout_alignParentBottom="true" >
42         </com.parrot.ARDrone.RotatedButton>
43
44                      <com.parrot.ARDrone.RotatedButton android:text="Up" 
45           android:id="@+id/moveUpButton"
46           android:layout_width="80dp" 
47           android:layout_height="wrap_content"
48           android:layout_alignParentLeft="true"
49           android:layout_alignParentBottom="true" >
50         </com.parrot.ARDrone.RotatedButton>
51
52          
53         <com.parrot.ARDrone.RotatedButton android:text="Down" 
54           android:id="@+id/moveDownButton"
55           android:layout_width="80dp" 
56           android:layout_height="wrap_content"
57           android:layout_alignParentLeft="true"
58           android:layout_alignParentTop="true" >
59         </com.parrot.ARDrone.RotatedButton>
60                 
61 </RelativeLayout >
62         </FrameLayout>
63
64
65
66 </LinearLayout>
67