diff --git a/calculatorpp/project.properties b/calculatorpp/project.properties
index 6126f831..41522aac 100644
--- a/calculatorpp/project.properties
+++ b/calculatorpp/project.properties
@@ -9,18 +9,19 @@
# Project target.
target=android-15
-android.library.reference.1=gen-external-apklibs/org.solovyev.android_android-common-all_1.0.4
-android.library.reference.2=gen-external-apklibs/org.solovyev.android_android-common-ads_1.0.4
-android.library.reference.3=gen-external-apklibs/org.solovyev.android_android-common-core_1.0.4
-android.library.reference.4=gen-external-apklibs/org.solovyev.android_android-common-billing_1.0.4
-android.library.reference.5=gen-external-apklibs/org.solovyev.android_android-common-db_1.0.4
-android.library.reference.6=gen-external-apklibs/org.solovyev.android_android-common-http_1.0.4
-android.library.reference.7=gen-external-apklibs/org.solovyev.android_android-common-list_1.0.4
-android.library.reference.8=gen-external-apklibs/org.solovyev.android_android-common-view_1.0.4
-android.library.reference.9=gen-external-apklibs/org.solovyev.android_android-common-preferences_1.0.4
-android.library.reference.10=gen-external-apklibs/org.solovyev.android_android-common-menu_1.0.4
-android.library.reference.11=gen-external-apklibs/org.solovyev.android_android-common-other_1.0.4
-android.library.reference.12=gen-external-apklibs/org.solovyev.android_android-common-sherlock_1.0.4
+android.library.reference.1=gen-external-apklibs/org.solovyev.android_android-common-all_1.0.5-SNAPSHOT
+android.library.reference.2=gen-external-apklibs/org.solovyev.android_android-common-ads_1.0.5-SNAPSHOT
+android.library.reference.3=gen-external-apklibs/org.solovyev.android_android-common-core_1.0.5-SNAPSHOT
+android.library.reference.4=gen-external-apklibs/org.solovyev.android_android-common-billing_1.0.5-SNAPSHOT
+android.library.reference.5=gen-external-apklibs/org.solovyev.android_android-common-db_1.0.5-SNAPSHOT
+android.library.reference.6=gen-external-apklibs/org.solovyev.android_android-common-http_1.0.5-SNAPSHOT
+android.library.reference.7=gen-external-apklibs/org.solovyev.android_android-common-list_1.0.5-SNAPSHOT
+android.library.reference.8=gen-external-apklibs/org.solovyev.android_android-common-view_1.0.5-SNAPSHOT
+android.library.reference.9=gen-external-apklibs/org.solovyev.android_android-common-preferences_1.0.5-SNAPSHOT
+android.library.reference.10=gen-external-apklibs/org.solovyev.android_android-common-menu_1.0.5-SNAPSHOT
+android.library.reference.11=gen-external-apklibs/org.solovyev.android_android-common-other_1.0.5-SNAPSHOT
+android.library.reference.12=gen-external-apklibs/org.solovyev.android_android-common-sherlock_1.0.5-SNAPSHOT
android.library.reference.13=gen-external-apklibs/com.actionbarsherlock_actionbarsherlock_4.2.0
+android.library.reference.14=gen-external-apklibs/org.solovyev.android_android-common-keyboard_1.0.5-SNAPSHOT
diff --git a/calculatorpp/res/layout/calc_copy_button.xml b/calculatorpp/res/layout/calc_copy_button.xml
index f6d25037..10208bda 100644
--- a/calculatorpp/res/layout/calc_copy_button.xml
+++ b/calculatorpp/res/layout/calc_copy_button.xml
@@ -6,9 +6,8 @@
~ or visit http://se.solovyev.org
-->
-
\ No newline at end of file
diff --git a/calculatorpp/res/layout/calc_donate_button.xml b/calculatorpp/res/layout/calc_donate_button.xml
index 9b15654a..b4d4e5fa 100644
--- a/calculatorpp/res/layout/calc_donate_button.xml
+++ b/calculatorpp/res/layout/calc_donate_button.xml
@@ -6,8 +6,8 @@
~ or visit http://se.solovyev.org
-->
-
\ No newline at end of file
diff --git a/calculatorpp/res/layout/calc_erase_button.xml b/calculatorpp/res/layout/calc_erase_button.xml
index b1ac9606..f6851bcc 100644
--- a/calculatorpp/res/layout/calc_erase_button.xml
+++ b/calculatorpp/res/layout/calc_erase_button.xml
@@ -6,9 +6,8 @@
~ or visit http://se.solovyev.org
-->
-
\ No newline at end of file
diff --git a/calculatorpp/res/layout/calc_paste_button.xml b/calculatorpp/res/layout/calc_paste_button.xml
index bde5f9ed..98ac3ff5 100644
--- a/calculatorpp/res/layout/calc_paste_button.xml
+++ b/calculatorpp/res/layout/calc_paste_button.xml
@@ -6,9 +6,8 @@
~ or visit http://se.solovyev.org
-->
-
\ No newline at end of file
diff --git a/calculatorpp/res/values/dimens.xml b/calculatorpp/res/values/dimens.xml
index 8f88c138..20c700be 100644
--- a/calculatorpp/res/values/dimens.xml
+++ b/calculatorpp/res/values/dimens.xml
@@ -8,6 +8,7 @@
30dp
20dp
+ 20dp
25sp
25sp
5dp
diff --git a/calculatorpp/res/values/styles.xml b/calculatorpp/res/values/styles.xml
index a5461f64..b851918f 100644
--- a/calculatorpp/res/values/styles.xml
+++ b/calculatorpp/res/values/styles.xml
@@ -38,7 +38,7 @@
- fill_parent
- 1
- true
- - @drawable/default_button_dark
+ - @drawable/metro_button_dark
- @dimen/button_margin
- @dimen/keyboard_button_text_size
- @color/button_text_color
diff --git a/calculatorpp/res/values/theme_default.xml b/calculatorpp/res/values/theme_default.xml
index 08245afb..6b876dad 100644
--- a/calculatorpp/res/values/theme_default.xml
+++ b/calculatorpp/res/values/theme_default.xml
@@ -7,7 +7,7 @@
diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java
index 47bb1d0b..2ecf6367 100644
--- a/calculatorpp/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java
+++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java
@@ -160,7 +160,7 @@ public abstract class AbstractCalculatorHelper implements SharedPreferences.OnSh
toggleButtonDirectionText(root, R.id.plusButton, false, DragDirection.down, DragDirection.up);
}
- CalculatorButtons.processButtons(true, theme, root);
+ CalculatorButtons.processButtons(true, theme, layout, root);
CalculatorButtons.toggleEqualsButton(preferences, activity);
CalculatorButtons.initMultiplicationButton(root);
NumeralBaseButtons.toggleNumericDigits(activity, preferences);
diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
index 04f9edcf..b8e0b7af 100644
--- a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
+++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
@@ -27,7 +27,6 @@ import org.solovyev.android.calculator.about.CalculatorFragmentType;
import org.solovyev.android.calculator.about.CalculatorReleaseNotesFragment;
import org.solovyev.android.fragments.FragmentUtils;
import org.solovyev.android.prefs.Preference;
-import org.solovyev.android.view.ColorButton;
import org.solovyev.common.equals.EqualsTool;
import org.solovyev.common.history.HistoryAction;
import org.solovyev.common.text.StringUtils;
@@ -279,15 +278,7 @@ public class CalculatorActivity extends SherlockFragmentActivity implements Shar
Log.d(String.valueOf(v.getId()), "digitButtonClickHandler() for: " + v.getId() + ". Pressed: " + v.isPressed());
if (v instanceof Button) {
-
- boolean processText = true;
- if ( v instanceof ColorButton) {
- processText = ((ColorButton) v).isShowText();
- }
-
- if ( processText ) {
- buttonPressed(((Button)v).getText().toString());
- }
+ buttonPressed(((Button)v).getText().toString());
}
}
diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
index 591f06aa..a1f644b5 100644
--- a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
+++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
@@ -19,7 +19,6 @@ import org.solovyev.android.AndroidUtils;
import org.solovyev.android.calculator.model.AndroidCalculatorEngine;
import org.solovyev.android.calculator.view.AngleUnitsButton;
import org.solovyev.android.calculator.view.NumeralBasesButton;
-import org.solovyev.android.view.ColorButton;
import org.solovyev.android.view.drag.DragButton;
import org.solovyev.android.view.drag.DragDirection;
import org.solovyev.android.view.drag.SimpleOnDragListener;
@@ -38,18 +37,18 @@ public final class CalculatorButtons {
public static void processButtons(boolean fixMagicFlames,
@NotNull CalculatorPreferences.Gui.Theme theme,
+ @NotNull CalculatorPreferences.Gui.Layout layout,
@NotNull View root) {
- if (theme.getThemeType() == CalculatorPreferences.Gui.ThemeType.metro) {
+ if ( layout == CalculatorPreferences.Gui.Layout.main_calculator_mobile ) {
- if (fixMagicFlames) {
- // for metro themes we should turn off magic flames
- AndroidUtils.processViewsOfType(root, ColorButton.class, new AndroidUtils.ViewProcessor() {
- @Override
- public void process(@NotNull ColorButton colorButton) {
- colorButton.setDrawMagicFlame(false);
- }
- });
- }
+ final float textSize =root.getResources().getDimension(R.dimen.button_text_size_mobile);
+
+ AndroidUtils.processViewsOfType(root, DragButton.class, new AndroidUtils.ViewProcessor() {
+ @Override
+ public void process(@NotNull DragButton button) {
+ button.setTextSize(textSize);
+ }
+ });
}
}
diff --git a/pom.xml b/pom.xml
index 619e8f5f..5d29978b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
UTF-8
- 1.0.4
+ 1.0.5-SNAPSHOT
1.0.1