Created a Camera Fragment & Activity to start testing computer vision
This commit is contained in:
25
IOIOTruck/res/layout/camera_activity.xml
Normal file
25
IOIOTruck/res/layout/camera_activity.xml
Normal 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>
|
||||
12
IOIOTruck/res/layout/camera_fragment.xml
Normal file
12
IOIOTruck/res/layout/camera_fragment.xml
Normal 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>
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user