diff --git a/android-app-core/res/layout/cpp_simple_app_button.xml b/android-app-core/res/layout/cpp_simple_app_button.xml
index 754fccce..2e5baf72 100644
--- a/android-app-core/res/layout/cpp_simple_app_button.xml
+++ b/android-app-core/res/layout/cpp_simple_app_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_clear_button.xml b/android-app-core/res/layout/cpp_simple_clear_button.xml
index 9e5a9e7b..fceee51b 100644
--- a/android-app-core/res/layout/cpp_simple_clear_button.xml
+++ b/android-app-core/res/layout/cpp_simple_clear_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_copy_button.xml b/android-app-core/res/layout/cpp_simple_copy_button.xml
index 4c383d47..665276f2 100644
--- a/android-app-core/res/layout/cpp_simple_copy_button.xml
+++ b/android-app-core/res/layout/cpp_simple_copy_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_division_button.xml b/android-app-core/res/layout/cpp_simple_division_button.xml
index 24e67794..516c224e 100644
--- a/android-app-core/res/layout/cpp_simple_division_button.xml
+++ b/android-app-core/res/layout/cpp_simple_division_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_dot_button.xml b/android-app-core/res/layout/cpp_simple_dot_button.xml
index 416fbefa..2607694e 100644
--- a/android-app-core/res/layout/cpp_simple_dot_button.xml
+++ b/android-app-core/res/layout/cpp_simple_dot_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_eight_digit_button.xml b/android-app-core/res/layout/cpp_simple_eight_digit_button.xml
index 345eae85..aa79844d 100644
--- a/android-app-core/res/layout/cpp_simple_eight_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_eight_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_equals_button.xml b/android-app-core/res/layout/cpp_simple_equals_button.xml
index 204ffbf6..039d3321 100644
--- a/android-app-core/res/layout/cpp_simple_equals_button.xml
+++ b/android-app-core/res/layout/cpp_simple_equals_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_erase_button.xml b/android-app-core/res/layout/cpp_simple_erase_button.xml
index bc22552b..389e6169 100644
--- a/android-app-core/res/layout/cpp_simple_erase_button.xml
+++ b/android-app-core/res/layout/cpp_simple_erase_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_five_digit_button.xml b/android-app-core/res/layout/cpp_simple_five_digit_button.xml
index 48fa94f1..f7f9dae8 100644
--- a/android-app-core/res/layout/cpp_simple_five_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_five_digit_button.xml
@@ -6,6 +6,6 @@
~ or visit http://se.solovyev.org
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_four_digit_button.xml b/android-app-core/res/layout/cpp_simple_four_digit_button.xml
index beeef1ec..a9e711a3 100644
--- a/android-app-core/res/layout/cpp_simple_four_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_four_digit_button.xml
@@ -6,6 +6,6 @@
~ or visit http://se.solovyev.org
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_functions_button.xml b/android-app-core/res/layout/cpp_simple_functions_button.xml
index f10d5054..bb441593 100644
--- a/android-app-core/res/layout/cpp_simple_functions_button.xml
+++ b/android-app-core/res/layout/cpp_simple_functions_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_history_button.xml b/android-app-core/res/layout/cpp_simple_history_button.xml
index edeb6dfa..7ba3c30f 100644
--- a/android-app-core/res/layout/cpp_simple_history_button.xml
+++ b/android-app-core/res/layout/cpp_simple_history_button.xml
@@ -6,7 +6,7 @@
~ or visit http://se.solovyev.org
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_left_button.xml b/android-app-core/res/layout/cpp_simple_left_button.xml
index 79d76cac..2f8c37a7 100644
--- a/android-app-core/res/layout/cpp_simple_left_button.xml
+++ b/android-app-core/res/layout/cpp_simple_left_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_like_button.xml b/android-app-core/res/layout/cpp_simple_like_button.xml
index 1db2b59e..9d3eef7c 100644
--- a/android-app-core/res/layout/cpp_simple_like_button.xml
+++ b/android-app-core/res/layout/cpp_simple_like_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_multiplication_button.xml b/android-app-core/res/layout/cpp_simple_multiplication_button.xml
index fcda5dcb..719decf3 100644
--- a/android-app-core/res/layout/cpp_simple_multiplication_button.xml
+++ b/android-app-core/res/layout/cpp_simple_multiplication_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_nine_digit_button.xml b/android-app-core/res/layout/cpp_simple_nine_digit_button.xml
index 6d5fa140..b01ac228 100644
--- a/android-app-core/res/layout/cpp_simple_nine_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_nine_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_one_digit_button.xml b/android-app-core/res/layout/cpp_simple_one_digit_button.xml
index ccfd092f..9341718d 100644
--- a/android-app-core/res/layout/cpp_simple_one_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_one_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_paste_button.xml b/android-app-core/res/layout/cpp_simple_paste_button.xml
index 42eca36f..b9695e12 100644
--- a/android-app-core/res/layout/cpp_simple_paste_button.xml
+++ b/android-app-core/res/layout/cpp_simple_paste_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_percent_button.xml b/android-app-core/res/layout/cpp_simple_percent_button.xml
index d91ed8b3..b98f7063 100644
--- a/android-app-core/res/layout/cpp_simple_percent_button.xml
+++ b/android-app-core/res/layout/cpp_simple_percent_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_plus_button.xml b/android-app-core/res/layout/cpp_simple_plus_button.xml
index c41001bf..0c10bb7b 100644
--- a/android-app-core/res/layout/cpp_simple_plus_button.xml
+++ b/android-app-core/res/layout/cpp_simple_plus_button.xml
@@ -6,6 +6,6 @@
~ or visit http://se.solovyev.org
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_power_button.xml b/android-app-core/res/layout/cpp_simple_power_button.xml
index 5f77f94c..f6a5f95b 100644
--- a/android-app-core/res/layout/cpp_simple_power_button.xml
+++ b/android-app-core/res/layout/cpp_simple_power_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_right_button.xml b/android-app-core/res/layout/cpp_simple_right_button.xml
index 4656d89d..bc24d176 100644
--- a/android-app-core/res/layout/cpp_simple_right_button.xml
+++ b/android-app-core/res/layout/cpp_simple_right_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_round_brackets_button.xml b/android-app-core/res/layout/cpp_simple_round_brackets_button.xml
index 1ae049d9..9833ee95 100644
--- a/android-app-core/res/layout/cpp_simple_round_brackets_button.xml
+++ b/android-app-core/res/layout/cpp_simple_round_brackets_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_settings_button.xml b/android-app-core/res/layout/cpp_simple_settings_button.xml
index df6e4293..f4c13728 100644
--- a/android-app-core/res/layout/cpp_simple_settings_button.xml
+++ b/android-app-core/res/layout/cpp_simple_settings_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_seven_digit_button.xml b/android-app-core/res/layout/cpp_simple_seven_digit_button.xml
index a45fae6a..3ef824aa 100644
--- a/android-app-core/res/layout/cpp_simple_seven_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_seven_digit_button.xml
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_six_digit_button.xml b/android-app-core/res/layout/cpp_simple_six_digit_button.xml
index aef39320..63d57149 100644
--- a/android-app-core/res/layout/cpp_simple_six_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_six_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_subtraction_button.xml b/android-app-core/res/layout/cpp_simple_subtraction_button.xml
index b5888abc..78a9d36f 100644
--- a/android-app-core/res/layout/cpp_simple_subtraction_button.xml
+++ b/android-app-core/res/layout/cpp_simple_subtraction_button.xml
@@ -6,6 +6,6 @@
~ or visit http://se.solovyev.org
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_three_digit_button.xml b/android-app-core/res/layout/cpp_simple_three_digit_button.xml
index 9cc9c46f..357a13f2 100644
--- a/android-app-core/res/layout/cpp_simple_three_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_three_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_two_digit_button.xml b/android-app-core/res/layout/cpp_simple_two_digit_button.xml
index 5745a27d..eb884305 100644
--- a/android-app-core/res/layout/cpp_simple_two_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_two_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_vars_button.xml b/android-app-core/res/layout/cpp_simple_vars_button.xml
index 6be475f1..0bea581e 100644
--- a/android-app-core/res/layout/cpp_simple_vars_button.xml
+++ b/android-app-core/res/layout/cpp_simple_vars_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/layout/cpp_simple_zero_digit_button.xml b/android-app-core/res/layout/cpp_simple_zero_digit_button.xml
index 4da0706c..37867e1f 100644
--- a/android-app-core/res/layout/cpp_simple_zero_digit_button.xml
+++ b/android-app-core/res/layout/cpp_simple_zero_digit_button.xml
@@ -7,6 +7,6 @@
-->
\ No newline at end of file
diff --git a/android-app-core/res/values/ids.xml b/android-app-core/res/values/ids.xml
index bc3359c4..c44a23fe 100644
--- a/android-app-core/res/values/ids.xml
+++ b/android-app-core/res/values/ids.xml
@@ -1,36 +1,37 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButton.java b/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButton.java
index f20a5555..0812ce4d 100644
--- a/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButton.java
+++ b/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButton.java
@@ -16,47 +16,47 @@ import java.util.Map;
public enum CalculatorButton {
/*digits*/
- one(R.id.oneDigitButton, "1"),
- two(R.id.twoDigitButton, "2"),
- three(R.id.threeDigitButton, "3"),
- four(R.id.fourDigitButton, "4"),
- five(R.id.fiveDigitButton, "5"),
- six(R.id.sixDigitButton, "6"),
- seven(R.id.sevenDigitButton, "7"),
- eight(R.id.eightDigitButton, "8"),
- nine(R.id.nineDigitButton, "9"),
- zero(R.id.zeroDigitButton, "0"),
+ one(R.id.cpp_button_1, "1"),
+ two(R.id.cpp_button_2, "2"),
+ three(R.id.cpp_button_3, "3"),
+ four(R.id.cpp_button_4, "4"),
+ five(R.id.cpp_button_5, "5"),
+ six(R.id.cpp_button_6, "6"),
+ seven(R.id.cpp_button_7, "7"),
+ eight(R.id.cpp_button_8, "8"),
+ nine(R.id.cpp_button_9, "9"),
+ zero(R.id.cpp_button_0, "0"),
- period(R.id.periodButton, "."),
- brackets(R.id.roundBracketsButton, "()"),
+ period(R.id.cpp_button_period, "."),
+ brackets(R.id.cpp_button_round_brackets, "()"),
- settings(R.id.settingsButton, CalculatorSpecialButton.settings_detached),
- like(R.id.likeButton, CalculatorSpecialButton.like),
+ settings(R.id.cpp_button_settings, CalculatorSpecialButton.settings_detached),
+ like(R.id.cpp_button_like, CalculatorSpecialButton.like),
/*last row*/
- left(R.id.leftButton, CalculatorSpecialButton.cursor_left),
- right(R.id.rightButton, CalculatorSpecialButton.cursor_right),
- vars(R.id.vars_button, CalculatorSpecialButton.vars_detached),
- functions(R.id.functions_button, CalculatorSpecialButton.functions_detached),
- app(R.id.appButton, CalculatorSpecialButton.open_app),
- history(R.id.historyButton, CalculatorSpecialButton.history_detached),
+ left(R.id.cpp_button_left, CalculatorSpecialButton.cursor_left),
+ right(R.id.cpp_button_right, CalculatorSpecialButton.cursor_right),
+ vars(R.id.cpp_button_vars, CalculatorSpecialButton.vars_detached),
+ functions(R.id.cpp_button_functions, CalculatorSpecialButton.functions_detached),
+ app(R.id.cpp_button_app, CalculatorSpecialButton.open_app),
+ history(R.id.cpp_button_history, CalculatorSpecialButton.history_detached),
/*operations*/
- multiplication(R.id.multiplicationButton, "*"),
- division(R.id.divisionButton, "/"),
- plus(R.id.plusButton, "+"),
- subtraction(R.id.subtractionButton, "-"),
- percent(R.id.percentButton, "%"),
- power(R.id.powerButton, "^"),
+ multiplication(R.id.cpp_button_multiplication, "*"),
+ division(R.id.cpp_button_division, "/"),
+ plus(R.id.cpp_button_plus, "+"),
+ subtraction(R.id.cpp_button_subtraction, "-"),
+ percent(R.id.cpp_button_percent, "%"),
+ power(R.id.cpp_button_power, "^"),
/*last column*/
- clear(R.id.clearButton, CalculatorSpecialButton.clear),
- erase(R.id.eraseButton, CalculatorSpecialButton.erase, CalculatorSpecialButton.clear),
- copy(R.id.copyButton, CalculatorSpecialButton.copy),
- paste(R.id.pasteButton, CalculatorSpecialButton.paste),
+ clear(R.id.cpp_button_clear, CalculatorSpecialButton.clear),
+ erase(R.id.cpp_button_erase, CalculatorSpecialButton.erase, CalculatorSpecialButton.clear),
+ copy(R.id.cpp_button_copy, CalculatorSpecialButton.copy),
+ paste(R.id.cpp_button_paste, CalculatorSpecialButton.paste),
/*equals*/
- equals(R.id.equalsButton, CalculatorSpecialButton.equals);
+ equals(R.id.cpp_button_equals, CalculatorSpecialButton.equals);
private final int buttonId;
diff --git a/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java b/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
index f743045f..03bdc8d4 100644
--- a/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
+++ b/android-app-core/src/main/java/org/solovyev/android/calculator/CalculatorButtons.java
@@ -53,14 +53,14 @@ public final class CalculatorButtons {
}
static void initMultiplicationButton(@NotNull View root) {
- final View multiplicationButton = root.findViewById(R.id.multiplicationButton);
+ final View multiplicationButton = root.findViewById(R.id.cpp_button_multiplication);
if ( multiplicationButton instanceof Button) {
((Button) multiplicationButton).setText(Locator.getInstance().getEngine().getMultiplicationSign());
}
}
public static void initMultiplicationButton(@NotNull RemoteViews views) {
- views.setTextViewText(R.id.multiplicationButton, Locator.getInstance().getEngine().getMultiplicationSign());
+ views.setTextViewText(R.id.cpp_button_multiplication, Locator.getInstance().getEngine().getMultiplicationSign());
}
@@ -75,7 +75,7 @@ public final class CalculatorButtons {
if (AndroidUtils.getScreenOrientation(activity) == Configuration.ORIENTATION_PORTRAIT
|| !CalculatorPreferences.Gui.autoOrientation.getPreference(preferences)) {
- final DragButton equalsButton = (DragButton)activity.findViewById(R.id.equalsButton);
+ final DragButton equalsButton = (DragButton)activity.findViewById(R.id.cpp_button_equals);
if (equalsButton != null) {
if (CalculatorPreferences.Gui.showEqualsButton.getPreference(preferences)) {
equalsButton.setVisibility(View.VISIBLE);
diff --git a/android-app/res/layout/calc_clear_button.xml b/android-app/res/layout/calc_clear_button.xml
index 6b84b546..d6ef49d3 100644
--- a/android-app/res/layout/calc_clear_button.xml
+++ b/android-app/res/layout/calc_clear_button.xml
@@ -8,7 +8,7 @@
\ No newline at end of file
diff --git a/android-app/res/layout/calc_division_button.xml b/android-app/res/layout/calc_division_button.xml
index 05755043..e44543c9 100644
--- a/android-app/res/layout/calc_division_button.xml
+++ b/android-app/res/layout/calc_division_button.xml
@@ -8,7 +8,7 @@
\ No newline at end of file
diff --git a/android-app/res/layout/calc_dot_button.xml b/android-app/res/layout/calc_dot_button.xml
index a006ef05..cb85e707 100644
--- a/android-app/res/layout/calc_dot_button.xml
+++ b/android-app/res/layout/calc_dot_button.xml
@@ -8,7 +8,7 @@
\ No newline at end of file
diff --git a/android-app/res/layout/calc_five_digit_button.xml b/android-app/res/layout/calc_five_digit_button.xml
index 4c59b34e..92fce03c 100644
--- a/android-app/res/layout/calc_five_digit_button.xml
+++ b/android-app/res/layout/calc_five_digit_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app/res/layout/calc_paste_button.xml b/android-app/res/layout/calc_paste_button.xml
index a6cd5e42..035740c6 100644
--- a/android-app/res/layout/calc_paste_button.xml
+++ b/android-app/res/layout/calc_paste_button.xml
@@ -7,7 +7,7 @@
-->
\ No newline at end of file
diff --git a/android-app/res/layout/calc_plus_button.xml b/android-app/res/layout/calc_plus_button.xml
index 83e5531d..58b6a10b 100644
--- a/android-app/res/layout/calc_plus_button.xml
+++ b/android-app/res/layout/calc_plus_button.xml
@@ -7,7 +7,7 @@
-->
(getCalculator()), dragPreferences), vibrator, preferences);
- final DragButton historyButton = getButton(root, R.id.historyButton);
+ final DragButton historyButton = getButton(root, R.id.cpp_button_history);
if (historyButton != null) {
historyButton.setOnDragListener(historyOnDragListener);
}
- final DragButton subtractionButton = getButton(root, R.id.subtractionButton);
+ final DragButton subtractionButton = getButton(root, R.id.cpp_button_subtraction);
if (subtractionButton != null) {
subtractionButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new SimpleOnDragListener.DragProcessor() {
@Override
@@ -108,64 +108,64 @@ public abstract class AbstractCalculatorHelper implements SharedPreferences.OnSh
final OnDragListener toPositionOnDragListener = new OnDragListenerVibrator(new SimpleOnDragListener(new CursorDragProcessor(), dragPreferences), vibrator, preferences);
- final DragButton rightButton = getButton(root, R.id.rightButton);
+ final DragButton rightButton = getButton(root, R.id.cpp_button_right);
if (rightButton != null) {
rightButton.setOnDragListener(toPositionOnDragListener);
}
- final DragButton leftButton = getButton(root, R.id.leftButton);
+ final DragButton leftButton = getButton(root, R.id.cpp_button_left);
if (leftButton != null) {
leftButton.setOnDragListener(toPositionOnDragListener);
}
- final DragButton equalsButton = getButton(root, R.id.equalsButton);
+ final DragButton equalsButton = getButton(root, R.id.cpp_button_equals);
if (equalsButton != null) {
equalsButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new EvalDragProcessor(), dragPreferences), vibrator, preferences));
}
- final AngleUnitsButton angleUnitsButton = (AngleUnitsButton) getButton(root, R.id.sixDigitButton);
+ final AngleUnitsButton angleUnitsButton = (AngleUnitsButton) getButton(root, R.id.cpp_button_6);
if (angleUnitsButton != null) {
angleUnitsButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new CalculatorButtons.AngleUnitsChanger(activity), dragPreferences), vibrator, preferences));
}
- final NumeralBasesButton clearButton = (NumeralBasesButton) getButton(root, R.id.clearButton);
+ final NumeralBasesButton clearButton = (NumeralBasesButton) getButton(root, R.id.cpp_button_clear);
if (clearButton != null) {
clearButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new CalculatorButtons.NumeralBasesChanger(activity), dragPreferences), vibrator, preferences));
}
- final DragButton varsButton = getButton(root, R.id.vars_button);
+ final DragButton varsButton = getButton(root, R.id.cpp_button_vars);
if (varsButton != null) {
varsButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new CalculatorButtons.VarsDragProcessor(activity), dragPreferences), vibrator, preferences));
}
- final DragButton functionsButton = getButton(root, R.id.functions_button);
+ final DragButton functionsButton = getButton(root, R.id.cpp_button_functions);
if (functionsButton != null) {
functionsButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new CalculatorButtons.FunctionsDragProcessor(activity), dragPreferences), vibrator, preferences));
}
- final DragButton roundBracketsButton = getButton(root, R.id.roundBracketsButton);
+ final DragButton roundBracketsButton = getButton(root, R.id.cpp_button_round_brackets);
if (roundBracketsButton != null) {
roundBracketsButton.setOnDragListener(new OnDragListenerVibrator(newOnDragListener(new CalculatorButtons.RoundBracketsDragProcessor(), dragPreferences), vibrator, preferences));
}
if (layout == CalculatorPreferences.Gui.Layout.simple) {
- toggleButtonDirectionText(root, R.id.oneDigitButton, false, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.twoDigitButton, false, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.threeDigitButton, false, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_1, false, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_2, false, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_3, false, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.sixDigitButton, false, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.sevenDigitButton, false, DragDirection.left, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.eightDigitButton, false, DragDirection.left, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_6, false, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_7, false, DragDirection.left, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_8, false, DragDirection.left, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.clearButton, false, DragDirection.left, DragDirection.up, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_clear, false, DragDirection.left, DragDirection.up, DragDirection.down);
- toggleButtonDirectionText(root, R.id.fourDigitButton, false, DragDirection.down);
- toggleButtonDirectionText(root, R.id.fiveDigitButton, false, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_4, false, DragDirection.down);
+ toggleButtonDirectionText(root, R.id.cpp_button_5, false, DragDirection.down);
- toggleButtonDirectionText(root, R.id.nineDigitButton, false, DragDirection.left);
+ toggleButtonDirectionText(root, R.id.cpp_button_9, false, DragDirection.left);
- toggleButtonDirectionText(root, R.id.multiplicationButton, false, DragDirection.left);
- toggleButtonDirectionText(root, R.id.plusButton, false, DragDirection.down, DragDirection.up);
+ toggleButtonDirectionText(root, R.id.cpp_button_multiplication, false, DragDirection.left);
+ toggleButtonDirectionText(root, R.id.cpp_button_plus, false, DragDirection.down, DragDirection.up);
}
CalculatorButtons.processButtons(theme, layout, root);
diff --git a/android-app/src/main/java/org/solovyev/android/calculator/AndroidNumeralBase.java b/android-app/src/main/java/org/solovyev/android/calculator/AndroidNumeralBase.java
index ecdc65aa..649493e8 100644
--- a/android-app/src/main/java/org/solovyev/android/calculator/AndroidNumeralBase.java
+++ b/android-app/src/main/java/org/solovyev/android/calculator/AndroidNumeralBase.java
@@ -22,7 +22,7 @@ public enum AndroidNumeralBase {
@NotNull
@Override
public List getButtonIds() {
- return Arrays.asList(R.id.zeroDigitButton, R.id.oneDigitButton);
+ return Arrays.asList(R.id.cpp_button_0, R.id.cpp_button_1);
}
},
@@ -31,7 +31,7 @@ public enum AndroidNumeralBase {
@Override
public List getButtonIds() {
final List result = new ArrayList(bin.getButtonIds());
- result.addAll(Arrays.asList(R.id.twoDigitButton, R.id.threeDigitButton, R.id.fourDigitButton, R.id.fiveDigitButton, R.id.sixDigitButton, R.id.sevenDigitButton));
+ result.addAll(Arrays.asList(R.id.cpp_button_2, R.id.cpp_button_3, R.id.cpp_button_4, R.id.cpp_button_5, R.id.cpp_button_6, R.id.cpp_button_7));
return result;
}
},
@@ -41,7 +41,7 @@ public enum AndroidNumeralBase {
@Override
public List getButtonIds() {
final List result = new ArrayList(oct.getButtonIds());
- result.addAll(Arrays.asList(R.id.eightDigitButton, R.id.nineDigitButton));
+ result.addAll(Arrays.asList(R.id.cpp_button_8, R.id.cpp_button_9));
return result;
}
},
@@ -49,7 +49,7 @@ public enum AndroidNumeralBase {
hex(CalculatorNumeralBase.hex) {
@NotNull
- private List specialHexButtonIds = Arrays.asList(R.id.oneDigitButton, R.id.twoDigitButton, R.id.threeDigitButton, R.id.fourDigitButton, R.id.fiveDigitButton, R.id.sixDigitButton);
+ private List specialHexButtonIds = Arrays.asList(R.id.cpp_button_1, R.id.cpp_button_2, R.id.cpp_button_3, R.id.cpp_button_4, R.id.cpp_button_5, R.id.cpp_button_6);
@NotNull
@Override