android-calculatorpp/res/layout-land/main.xml

113 lines
4.5 KiB
XML
Raw Normal View History

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"
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"
calc:textUp="◀◀"
a:text="◀"
calc:directionTextScale="0.5"
style="?controlButtonStyle"
2011-10-15 06:52:05 -04:00
a:onClick="moveLeftButtonClickHandler"
2011-10-20 06:57:59 -04:00
a:layout_width="fill_parent"
a:layout_height="fill_parent"
2011-10-15 06:52:05 -04:00
a:layout_weight="1.5"/>
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"
style="?controlImageButtonStyle"
2011-10-15 06:52:05 -04:00
a:onClick="eraseButtonClickHandler"
2011-10-20 06:57:59 -04:00
a:layout_width="fill_parent"
a:layout_height="fill_parent"
2011-10-15 06:52:05 -04:00
a:layout_weight="1.5"/>
2011-10-08 08:43:13 -04:00
2011-10-09 12:22:44 -04:00
<include layout="@layout/calc_display"
2011-10-20 06:57:59 -04:00
a:layout_width="fill_parent"
a:layout_height="fill_parent"
2011-10-09 12:22:44 -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/clearButton"
a:text="@string/c_clear"
a:textStyle="bold"
style="?controlImageButtonStyle"
2011-10-15 06:52:05 -04:00
a:onClick="clearButtonClickHandler"
2011-10-20 06:57:59 -04:00
a:layout_width="fill_parent"
a:layout_height="fill_parent"
2011-10-15 06:52:05 -04:00
a:layout_weight="1.5"/>
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"
calc:textUp="▶▶"
a:text="▶"
calc:directionTextScale="0.5"
style="?controlButtonStyle"
2011-10-15 06:52:05 -04:00
a:onClick="moveRightButtonClickHandler"
2011-10-20 06:57:59 -04:00
a:layout_width="fill_parent"
a:layout_height="fill_parent"
2011-10-15 06:52:05 -04:00
a:layout_weight="1.5"/>
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-09 12:22:44 -04:00
<include layout="@layout/calc_paste_button"/>
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"/>
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-09 12:22:44 -04:00
<include layout="@layout/calc_copy_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-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-09 12:22:44 -04:00
<include layout="@layout/calc_square_brackets_button"/>
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"/>
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>