DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Camera Surface In Android

11.13.2009
| 6507 views |
  • submit to reddit
        // This is the XML file to use in the Camera Activity
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent" android:layout_height="fill_parent"
	android:orientation="vertical">
	<SurfaceView android:id="@+id/surface_camera"
		android:layout_width="fill_parent" android:layout_height="10dip"
		android:layout_weight="1">		
	</SurfaceView>	
</LinearLayout>