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

87 lines
2.8 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"
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-10-08 08:43:13 -04:00
<org.solovyev.android.view.widgets.DirectionDragButton
xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/equalsButton"
a:text="="
a:layout_weight="4"
style="@style/control_button_style"
a:onClick="numericButtonClickHandler"/>
2011-09-10 14:20:58 -04:00
2011-10-08 08:43:13 -04:00
<include layout="@layout/calc_display"/>
2011-09-10 14:20:58 -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-28 16:11:12 -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_clear_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-28 16:11:12 -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_division_button"/>
<include layout="@layout/calc_erase_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_plus_button"/>
<include layout="@layout/calc_paste_button"/>
2011-09-10 14:20:58 -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:32:54 -04:00
2011-10-08 08:43:13 -04:00
<include layout="@layout/calc_round_brackets_button"/>
<include layout="@layout/calc_zero_digit_button"/>
<include layout="@layout/calc_square_brackets_button"/>
<include layout="@layout/calc_subtraction_button"/>
<include layout="@layout/calc_history_button"/>
2011-09-10 14:20:58 -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_left_button"/>
<include layout="@layout/calc_right_button"/>
<include layout="@layout/calc_vars_button"/>
2011-09-12 16:32:02 -04:00
2011-09-19 04:36:12 -04:00
<org.solovyev.android.view.widgets.DirectionDragButton a:text="" style="@style/control_button_style"/>
2011-09-12 16:32:02 -04:00
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-10 18:38:45 -04:00
</LinearLayout>
2011-06-23 17:09:13 -04:00
</LinearLayout>