From 9987670225d4d568616795329a3d0e0eba129b81 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Thu, 27 Sep 2012 00:10:33 +0400 Subject: [PATCH] Fragments --- calculatorpp/AndroidManifest.xml | 130 ++++++------ calculatorpp/res/layout/history_fragment.xml | 17 +- .../layout/{vars.xml => vars_fragment.xml} | 23 ++- calculatorpp/res/values/attributes.xml | 2 + .../res/values/styles-default-theme.xml | 17 ++ .../calculator/CalculatorActivity.java | 15 +- .../CalculatorActivityLauncher.java | 16 +- .../calculator/CalculatorFragmentHelper.java | 2 + .../CalculatorFragmentHelperImpl.java | 11 + .../AbstractCalculatorHistoryFragment.java | 10 +- .../history/CalculatorHistoryFragment.java | 2 +- .../CalculatorSavedHistoryFragment.java | 2 +- ...va => AbstractMathEntityListFragment.java} | 161 +++++++++------ .../edit/CalculatorFunctionsActivity.java | 103 +++++----- .../CalculatorFunctionsFragmentActivity.java | 67 +++++++ .../edit/CalculatorFunctionsTabActivity.java | 52 ----- .../edit/CalculatorOperatorsActivity.java | 87 ++++---- ...ivity.java => CalculatorVarsFragment.java} | 188 ++++++++++-------- .../edit/CalculatorVarsFragmentActivity.java | 80 ++++++++ .../math/edit/CalculatorVarsTabActivity.java | 56 ------ .../math/edit/FunctionEditorSaver.java | 24 +-- .../math/edit/MathEntityRemover.java | 26 +-- .../calculator/math/edit/VarEditorSaver.java | 24 +-- 23 files changed, 635 insertions(+), 480 deletions(-) rename calculatorpp/res/layout/{vars.xml => vars_fragment.xml} (52%) rename calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/{AbstractMathEntityListActivity.java => AbstractMathEntityListFragment.java} (70%) create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/CalculatorFunctionsFragmentActivity.java delete mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/CalculatorFunctionsTabActivity.java rename calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/{CalculatorVarsActivity.java => CalculatorVarsFragment.java} (60%) create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/CalculatorVarsFragmentActivity.java delete mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/math/edit/CalculatorVarsTabActivity.java diff --git a/calculatorpp/AndroidManifest.xml b/calculatorpp/AndroidManifest.xml index 03991aca..d983d46b 100644 --- a/calculatorpp/AndroidManifest.xml +++ b/calculatorpp/AndroidManifest.xml @@ -1,66 +1,66 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/calculatorpp/res/layout/history_fragment.xml b/calculatorpp/res/layout/history_fragment.xml index 52a7b89c..b90e45e3 100644 --- a/calculatorpp/res/layout/history_fragment.xml +++ b/calculatorpp/res/layout/history_fragment.xml @@ -1,24 +1,17 @@ + a:layout_width="match_parent" + a:layout_height="match_parent"> - - - + \ No newline at end of file diff --git a/calculatorpp/res/layout/vars.xml b/calculatorpp/res/layout/vars_fragment.xml similarity index 52% rename from calculatorpp/res/layout/vars.xml rename to calculatorpp/res/layout/vars_fragment.xml index d334aa5a..dd81b2ce 100644 --- a/calculatorpp/res/layout/vars.xml +++ b/calculatorpp/res/layout/vars_fragment.xml @@ -9,21 +9,24 @@ + style="?fragmentLayoutStyle" + a:layout_width="match_parent" + a:layout_height="match_parent"> - + -