From 1b581304c6e65f41521ee8f2290c5a94ba620c67 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Thu, 20 Oct 2011 14:57:59 +0400 Subject: [PATCH] android_1.6_compatibility --- AndroidManifest.xml | 45 ++++++++++--------- default.properties | 2 +- res/layout-land/main.xml | 36 +++++++-------- res/layout-port/main.xml | 24 +++++----- res/layout/about.xml | 22 +++++++-- res/layout/calc_editor.xml | 2 +- res/layout/calc_equals_button.xml | 4 +- res/layout/donate.xml | 8 ++-- res/layout/drag_button_calibration.xml | 10 ++--- res/layout/history.xml | 12 ++--- res/layout/history_activity.xml | 8 ++-- res/layout/number_picker.xml | 6 +-- res/layout/var.xml | 16 +++---- res/layout/var_edit.xml | 20 ++++----- res/layout/vars.xml | 8 ++-- res/values/styles.xml | 16 +++---- .../calculator/CalculatorActivity.java | 9 +++- .../android/view/widgets/NumberPicker.java | 4 +- 18 files changed, 136 insertions(+), 116 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ea6f50dc..12e47715 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,41 +1,42 @@ - + a:versionCode="2" + a:versionName="1.0.2"> - + - + - + - - + + - + - + - + - + diff --git a/default.properties b/default.properties index e2e8061f..b74c4880 100644 --- a/default.properties +++ b/default.properties @@ -8,4 +8,4 @@ # project structure. # Project target. -target=android-8 +target=android-4 diff --git a/res/layout-land/main.xml b/res/layout-land/main.xml index 06014743..a8a91a43 100644 --- a/res/layout-land/main.xml +++ b/res/layout-land/main.xml @@ -3,19 +3,19 @@ - + @@ -36,14 +36,14 @@ a:drawableTop="@drawable/sym_keyboard_delete" style="?controlImageButtonStyle" a:onClick="eraseButtonClickHandler" - a:layout_width="match_parent" - a:layout_height="match_parent" + a:layout_width="fill_parent" + a:layout_height="fill_parent" a:layout_weight="1.5"/> - + @@ -83,7 +83,7 @@ - + @@ -95,7 +95,7 @@ - + diff --git a/res/layout-port/main.xml b/res/layout-port/main.xml index 4ddceba1..26f34451 100644 --- a/res/layout-port/main.xml +++ b/res/layout-port/main.xml @@ -2,27 +2,27 @@ - + + a:layout_width="fill_parent" + a:layout_height="fill_parent"/> - + @@ -32,7 +32,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -63,7 +63,7 @@ - + diff --git a/res/layout/about.xml b/res/layout/about.xml index c245c5f9..b8a08823 100644 --- a/res/layout/about.xml +++ b/res/layout/about.xml @@ -8,8 +8,8 @@ + + \ No newline at end of file diff --git a/res/layout/calc_editor.xml b/res/layout/calc_editor.xml index ff0122f2..71790b5d 100644 --- a/res/layout/calc_editor.xml +++ b/res/layout/calc_editor.xml @@ -8,7 +8,7 @@ \ No newline at end of file diff --git a/res/layout/donate.xml b/res/layout/donate.xml index 64aa7d3c..b6cfeef7 100644 --- a/res/layout/donate.xml +++ b/res/layout/donate.xml @@ -7,13 +7,13 @@ --> + a:layout_width="fill_parent" + a:layout_height="fill_parent"> + a:layout_height="fill_parent"/> \ No newline at end of file diff --git a/res/layout/drag_button_calibration.xml b/res/layout/drag_button_calibration.xml index ca040aab..3795fc97 100644 --- a/res/layout/drag_button_calibration.xml +++ b/res/layout/drag_button_calibration.xml @@ -3,18 +3,18 @@ - + + a:layout_width="fill_parent" + a:layout_height="fill_parent"> diff --git a/res/layout/history_activity.xml b/res/layout/history_activity.xml index 48b190c0..c0165d13 100644 --- a/res/layout/history_activity.xml +++ b/res/layout/history_activity.xml @@ -8,12 +8,12 @@ + a:layout_width="fill_parent" + a:layout_height="fill_parent"> diff --git a/res/layout/number_picker.xml b/res/layout/number_picker.xml index cad57c54..093538af 100644 --- a/res/layout/number_picker.xml +++ b/res/layout/number_picker.xml @@ -9,12 +9,12 @@ diff --git a/res/layout/var.xml b/res/layout/var.xml index 8dbc7a6a..2fdc739d 100644 --- a/res/layout/var.xml +++ b/res/layout/var.xml @@ -8,17 +8,17 @@ + a:layout_width="fill_parent" + a:layout_height="fill_parent"> + a:layout_width="fill_parent" + a:layout_height="fill_parent"> + a:layout_width="fill_parent" + a:layout_height="fill_parent"> - - - diff --git a/res/layout/vars.xml b/res/layout/vars.xml index 1e66cacb..f999168a 100644 --- a/res/layout/vars.xml +++ b/res/layout/vars.xml @@ -8,12 +8,12 @@ + a:layout_width="fill_parent" + a:layout_height="fill_parent"> diff --git a/res/values/styles.xml b/res/values/styles.xml index 9eb4eb98..4421f250 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -8,8 +8,8 @@