2011-06-23 17:09:13 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-26 13:32:43 -04:00
|
|
|
<!--
|
|
|
|
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
|
|
|
~ For more information, please, contact se.solovyev@gmail.com
|
|
|
|
~ or visit http://se.solovyev.org
|
|
|
|
-->
|
|
|
|
|
2011-09-10 14:20:58 -04:00
|
|
|
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
|
|
|
a:orientation="vertical"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_width="fill_parent"
|
|
|
|
a:layout_height="fill_parent"
|
2011-09-10 14:20:58 -04:00
|
|
|
a:background="#ff000000">
|
|
|
|
|
|
|
|
<LinearLayout
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_width="fill_parent"
|
|
|
|
a:layout_height="fill_parent"
|
2011-09-10 18:38:45 -04:00
|
|
|
a:orientation="vertical"
|
|
|
|
a:layout_gravity="center">
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_editor"/>
|
2011-09-10 18:38:45 -04:00
|
|
|
|
2011-10-20 06:57:59 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="fill_parent" a:layout_height="0dp">
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-15 06:52:05 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
|
|
|
a:id="@+id/leftButton"
|
2011-10-15 14:11:59 -04:00
|
|
|
calc:textUp="◀◀"
|
|
|
|
a:text="◀"
|
|
|
|
calc:directionTextScale="0.5"
|
|
|
|
style="?controlButtonStyle"
|
2011-10-15 06:52:05 -04:00
|
|
|
a:onClick="moveLeftButtonClickHandler"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_width="0dp"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_height="fill_parent"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_weight="1"/>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-15 06:52:05 -04:00
|
|
|
|
|
|
|
<org.solovyev.android.view.widgets.ColorButton xmlns:a="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
|
|
|
a:id="@+id/eraseButton"
|
|
|
|
a:drawableTop="@drawable/sym_keyboard_delete"
|
2011-10-15 14:11:59 -04:00
|
|
|
style="?controlImageButtonStyle"
|
2011-10-15 06:52:05 -04:00
|
|
|
a:onClick="eraseButtonClickHandler"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_width="0dp"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_height="fill_parent"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_weight="1"/>
|
2011-10-08 08:43:13 -04:00
|
|
|
|
|
|
|
|
2011-10-09 12:22:44 -04:00
|
|
|
<include layout="@layout/calc_display"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_width="0dp"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_height="fill_parent"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_weight="4"/>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-15 06:52:05 -04:00
|
|
|
<org.solovyev.android.view.widgets.ColorButton xmlns:a="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
|
|
|
a:id="@+id/clearButton"
|
|
|
|
a:text="@string/c_clear"
|
|
|
|
a:textStyle="bold"
|
2011-10-15 14:11:59 -04:00
|
|
|
style="?controlImageButtonStyle"
|
2011-10-15 06:52:05 -04:00
|
|
|
a:onClick="clearButtonClickHandler"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_width="0dp"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_height="fill_parent"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_weight="1"/>
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-10-15 06:52:05 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
|
|
|
a:id="@+id/rightButton"
|
2011-10-15 14:11:59 -04:00
|
|
|
calc:textUp="▶▶"
|
|
|
|
a:text="▶"
|
|
|
|
calc:directionTextScale="0.5"
|
|
|
|
style="?controlButtonStyle"
|
2011-10-15 06:52:05 -04:00
|
|
|
a:onClick="moveRightButtonClickHandler"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_width="0dp"
|
2011-10-20 06:57:59 -04:00
|
|
|
a:layout_height="fill_parent"
|
2011-10-24 15:11:50 -04:00
|
|
|
a:layout_weight="1"/>
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-09-10 18:38:45 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
2011-10-20 06:57:59 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="fill_parent" a:layout_height="0dp">
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-10-16 07:11:33 -04:00
|
|
|
<include layout="@layout/calc_history_button"/>
|
2011-10-26 12:54:05 -04:00
|
|
|
<include layout="@layout/calc_copy_button"/>
|
2011-10-26 13:32:43 -04:00
|
|
|
<include layout="@layout/calc_seven_digit_button"/>
|
|
|
|
<include layout="@layout/calc_eight_digit_button"/>
|
|
|
|
<include layout="@layout/calc_nine_digit_button"/>
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_multiplication_button"/>
|
|
|
|
<include layout="@layout/calc_division_button"/>
|
2011-10-24 15:11:50 -04:00
|
|
|
<include layout="@layout/calc_equals_button"/>
|
2011-09-12 16:32:02 -04:00
|
|
|
|
2011-09-10 18:38:45 -04:00
|
|
|
</LinearLayout>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-20 06:57:59 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="fill_parent" a:layout_height="0dp">
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-10-16 07:11:33 -04:00
|
|
|
<include layout="@layout/calc_vars_button"/>
|
2011-10-26 12:54:05 -04:00
|
|
|
<include layout="@layout/calc_paste_button"/>
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_four_digit_button"/>
|
|
|
|
<include layout="@layout/calc_five_digit_button"/>
|
|
|
|
<include layout="@layout/calc_six_digit_button"/>
|
|
|
|
<include layout="@layout/calc_plus_button"/>
|
|
|
|
<include layout="@layout/calc_subtraction_button"/>
|
2011-10-24 15:11:50 -04:00
|
|
|
<include layout="@layout/calc_empty_button"/>
|
2011-10-08 08:43:13 -04:00
|
|
|
|
2011-09-10 18:38:45 -04:00
|
|
|
</LinearLayout>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-20 06:57:59 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="fill_parent" a:layout_height="0dp">
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-16 07:11:33 -04:00
|
|
|
<include layout="@layout/calc_donate_button"/>
|
2011-10-24 15:11:50 -04:00
|
|
|
<include layout="@layout/calc_empty_button"/>
|
2011-10-26 13:32:43 -04:00
|
|
|
<include layout="@layout/calc_one_digit_button"/>
|
|
|
|
<include layout="@layout/calc_two_digit_button"/>
|
|
|
|
<include layout="@layout/calc_three_digit_button"/>
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_zero_digit_button"/>
|
|
|
|
<include layout="@layout/calc_round_brackets_button"/>
|
2011-10-24 15:11:50 -04:00
|
|
|
<include layout="@layout/calc_square_brackets_button"/>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
|
|
|
</LinearLayout>
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-09-10 18:38:45 -04:00
|
|
|
</LinearLayout>
|
2011-06-23 17:09:13 -04:00
|
|
|
</LinearLayout>
|