Created a Camera Fragment & Activity to start testing computer vision

This commit is contained in:
2012-01-29 15:09:12 -05:00
parent a8bdfa8407
commit 8c04578c21
9 changed files with 448 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/camera_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:id="@+id/camera_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.TwentyCodes.android.IOIOTruck.CameraFragment" >
<!-- Preview: layout=@layout/camera_fragment -->
</fragment>
<TextView
android:id="@+id/log_textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/camera_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<SurfaceView
android:id="@+id/cameraSurface"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</FrameLayout>

View File

@@ -42,6 +42,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/nav_activity" />
<Button
android:id="@+id/camera_activity_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/camera_activity" />
<RelativeLayout
android:id="@+id/relativeLayout1"

View File

@@ -17,7 +17,6 @@
android:layout_weight="2" >
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -26,5 +26,6 @@
<string name="no_gps_signal">No GPS signal at this time, please try agian</string>
<string name="point_selected">Location Selected: </string>
<string name="dest_reached">Destination reached</string>
<string name="camera_activity">Camera Activity</string>
</resources>