<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:staticfree="http://staticfree.info/ns/android/units">
	<LinearLayout android:orientation="vertical"
		android:layout_width="fill_parent" android:layout_height="fill_parent">
		
		<include layout="@layout/result" />
		<LinearLayout android:orientation="horizontal"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content">
			<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
				android:layout_width="fill_parent" 
				android:layout_height="wrap_content"
				android:layout_weight="1"
				android:orientation="vertical">

		<MultiAutoCompleteTextView android:id="@+id/have"
			style="@style/MainEntry"
			android:completionThreshold="2" 
			android:layout_height="wrap_content"
			android:layout_width="fill_parent"
			android:hint="@string/have_hint"
			android:imeOptions="actionNext"
			 />

		<MultiAutoCompleteTextView android:id="@+id/want"
			style="@style/MainEntry"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:completionThreshold="1" 
			android:hint="@string/want_hint"
			android:imeOptions="actionGo"
			 />
		</LinearLayout>
            <com.android.calculator2.ColorButton
                android:id="@+id/backspace"
                android:background="@drawable/backspace"
                style="@style/button_style"
                android:layout_weight="3"
                android:layout_width="fill_parent"
                staticfree:longpressEllipsis="true"
                />
			</LinearLayout>

	<org.jared.commons.ui.WorkspaceView
		android:id="@+id/numpad_switcher"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent">
<!-- 
/*
 * Copyright (C) 2008, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 *
 *     http://www.apache.org/licenses/LICENSE-2.0 
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */
-->

			<LinearLayout android:id="@+id/numberpad"
			  xmlns:android="http://schemas.android.com/apk/res/android"
			  android:layout_width="fill_parent"
			  android:orientation="vertical"
			  android:layout_height="fill_parent">

          <LinearLayout 
             android:layout_weight="3"
             android:layout_width="fill_parent"
             android:layout_height="0dp">
            <com.android.calculator2.ColorButton
                android:id="@+id/unit_entry"
                android:text="@string/unit_entry"
                style="@style/button_style"
                staticfree:longpressEllipsis="true"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/leftParen"
                android:text="@string/leftParen"
                style="@style/button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/rightParen"
                android:text="@string/rightParen"
                style="@style/button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/power"
                android:text="@string/power"
                style="@style/button_style"
                staticfree:longpressText="E"
                />
        </LinearLayout>
        <LinearLayout 
             android:layout_weight="3"
             android:layout_width="fill_parent"
             android:layout_height="0dp">
            <com.android.calculator2.ColorButton
                android:id="@+id/digit7"
                android:text="@string/digit7"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit8"
                android:text="@string/digit8"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit9"
                android:text="@string/digit9"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/div"
                android:text="@string/div"
                staticfree:longpressText="|"
                style="@style/button_style"
                />
        </LinearLayout>

        <LinearLayout
             android:layout_weight="3"
             android:layout_width="fill_parent"
             android:layout_height="0dp"
             >
            <com.android.calculator2.ColorButton
                android:id="@+id/digit4"
                android:text="@string/digit4"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit5"
                android:text="@string/digit5"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit6"
                android:text="@string/digit6"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/mul"
                android:text="@string/mul"
                style="@style/button_style"
                />
        </LinearLayout>

        <LinearLayout
             android:layout_weight="3"
             android:layout_width="fill_parent"
             android:layout_height="0dp"
             >
            <com.android.calculator2.ColorButton
                android:id="@+id/digit1"
                android:text="@string/digit1"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit2"
                android:text="@string/digit2"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit3"
                android:text="@string/digit3"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/minus"
                android:text="@string/minus"
                style="@style/button_style"
                />
        </LinearLayout>

        <LinearLayout
             android:layout_weight="3"
             android:layout_width="fill_parent"
             android:layout_height="0dp"
             >
            <com.android.calculator2.ColorButton
                android:id="@+id/dot"
                android:text="@string/dot"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/digit0"
                android:text="@string/digit0"
                style="@style/digit_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/equal"
                android:text="@string/equal"
                style="@style/equal_button_style"
                />
            <com.android.calculator2.ColorButton
                android:id="@+id/plus"
                android:text="@string/plus"
                style="@style/button_style"
                />
        </LinearLayout>
</LinearLayout> <!-- numberpad -->
	<include layout="@layout/numpad_2" />
</org.jared.commons.ui.WorkspaceView>
		
	</LinearLayout> <!-- main -->
	
	<include layout="@layout/history" />
</merge>
