2011-06-23 17:09:13 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
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"
|
|
|
|
a:layout_width="match_parent"
|
|
|
|
a:layout_height="match_parent"
|
|
|
|
a:background="#ff000000">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
a:layout_width="match_parent"
|
2011-09-10 18:38:45 -04:00
|
|
|
a:layout_height="match_parent"
|
|
|
|
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
|
|
|
|
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp">
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-09-19 04:36:12 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton a:id="@+id/leftButton"
|
2011-10-08 08:43:13 -04:00
|
|
|
calc:textUp="↞"
|
|
|
|
a:text="←"
|
|
|
|
a:layout_weight="1.5"
|
|
|
|
style="@style/control_button_style"
|
|
|
|
a:onClick="moveLeftButtonClickHandler"/>
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-09-19 04:36:12 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton a:id="@+id/eraseButton"
|
2011-10-08 08:43:13 -04:00
|
|
|
a:text="@string/c_erase"
|
|
|
|
a:layout_weight="1.5"
|
|
|
|
style="@style/control_button_style"
|
|
|
|
a:onClick="eraseButtonClickHandler"/>
|
|
|
|
|
|
|
|
<include layout="@layout/calc_display"/>
|
|
|
|
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-09-19 04:36:12 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton a:id="@+id/clearButton"
|
2011-10-08 08:43:13 -04:00
|
|
|
a:text="@string/c_clear"
|
|
|
|
a:layout_weight="1.5"
|
|
|
|
style="@style/control_button_style"
|
|
|
|
a:onClick="clearButtonClickHandler"/>
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-09-19 04:36:12 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton a:id="@+id/rightButton"
|
2011-10-08 08:43:13 -04:00
|
|
|
calc:textUp="↠"
|
|
|
|
a:text="→"
|
|
|
|
a:layout_weight="1.5"
|
|
|
|
style="@style/control_button_style"
|
|
|
|
a:onClick="moveRightButtonClickHandler"/>
|
2011-09-13 03:20:17 -04:00
|
|
|
|
|
|
|
|
2011-09-10 18:38:45 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp">
|
2011-09-13 03:20:17 -04:00
|
|
|
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_one_digit_button"/>
|
|
|
|
<include layout="@layout/calc_two_digit_button"/>
|
|
|
|
<include layout="@layout/calc_three_digit_button"/>
|
|
|
|
<include layout="@layout/calc_multiplication_button"/>
|
|
|
|
<include layout="@layout/calc_division_button"/>
|
|
|
|
<include layout="@layout/calc_equals_button"/>
|
|
|
|
<include layout="@layout/calc_paste_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-09-10 18:38:45 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp">
|
2011-09-13 03:20:17 -04:00
|
|
|
|
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"/>
|
|
|
|
<include layout="@layout/calc_square_brackets_button"/>
|
|
|
|
<include layout="@layout/calc_history_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-09-10 18:38:45 -04:00
|
|
|
<LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp">
|
2011-09-10 14:20:58 -04:00
|
|
|
|
2011-10-08 08:43:13 -04:00
|
|
|
<include layout="@layout/calc_seven_digit_button"/>
|
|
|
|
<include layout="@layout/calc_eight_digit_button"/>
|
|
|
|
<include layout="@layout/calc_nine_digit_button"/>
|
|
|
|
<include layout="@layout/calc_zero_digit_button"/>
|
|
|
|
<include layout="@layout/calc_round_brackets_button"/>
|
|
|
|
<include layout="@layout/calc_vars_button"/>
|
2011-09-19 04:36:12 -04:00
|
|
|
<org.solovyev.android.view.widgets.DirectionDragButton a:text="" style="@style/control_button_style"/>
|
2011-09-11 09:17:20 -04:00
|
|
|
|
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>
|