Android : Layouting for camera SurfaceView using TextView as Header and footer


<?xml version=”1.0″ encoding=”utf-8″?>
<FrameLayout xmlns:android=”http://schemas.android.com/apk/res/android&#8221;
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”>

<SurfaceView
android:id=”@+id/main_surface_camera”
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
android:layout_weight=”1″/>

<TextView
android:id=”@+id/mainHeader”
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:layout_gravity=”top”
android:gravity=”center”
android:text=”-HEADERl-” />

<TextView
android:id=”@+id/mainFooter”
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:layout_gravity=”bottom”
android:gravity=”center”
android:text=”-FOOTER-” />

</FrameLayout>

 

 

 

//TextView as Header and footer on android

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s