<?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" >

    <TextView
        android:id="@+id/textToGenerateQRCodeFromLabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Enter some text to generate QR code from"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <EditText
        android:id="@+id/textToGenerateQRCodeFrom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="10" >

        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/generateQRCode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Generate QR Code" />

    <Button
        android:id="@+id/scanQRCode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Scan QR Code" />

    <ImageView
        android:id="@+id/generatedQRCodeImage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:id="@+id/scannedQRCodeTextLabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Scanned QR code text: "
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/scannedQRCodeText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Scanned QR code text will appear here"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <include layout="@layout/capture" />

</LinearLayout>