From ddbb9b3bef61f7a0aa5873257d93ea723abd6474 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Thu, 22 Nov 2012 00:24:17 +0400 Subject: [PATCH] Calculator onscreen added --- calculatorpp/AndroidManifest.xml | 8 +- ...overlay_footer.xml => onscreen_footer.xml} | 0 calculatorpp/res/layout/onscreen_header.xml | 32 ++ ...overlay_layout.xml => onscreen_layout.xml} | 6 +- calculatorpp/res/layout/overlay_header.xml | 36 -- calculatorpp/res/values-ru/text_strings.xml | 1 + calculatorpp/res/values/dimens.xml | 2 + calculatorpp/res/values/text_strings.xml | 1 + calculatorpp/res/values/theme_gray.xml | 2 +- calculatorpp/res/values/theme_metro_blue.xml | 8 + .../CalculatorOnScreenStartActivity.java | 4 +- .../AndroidExternalListenersContainer.java | 101 ++--- .../CalculatorOnscreenBroadcastReceiver.java} | 8 +- .../onscreen/CalculatorOnscreenService.java | 155 +++++++ .../onscreen/CalculatorOnscreenView.java | 393 ++++++++++++++++++ .../onscreen/CalculatorOnscreenViewDef.java | 61 +++ .../onscreen/OnscreenViewListener.java | 15 + .../overlay/CalculatorOverlayService.java | 253 ----------- 18 files changed, 733 insertions(+), 353 deletions(-) rename calculatorpp/res/layout/{overlay_footer.xml => onscreen_footer.xml} (100%) create mode 100644 calculatorpp/res/layout/onscreen_header.xml rename calculatorpp/res/layout/{overlay_layout.xml => onscreen_layout.xml} (88%) delete mode 100644 calculatorpp/res/layout/overlay_header.xml rename calculatorpp/src/main/java/org/solovyev/android/calculator/{overlay/CalculatorOverlayBroadcastReceiver.java => onscreen/CalculatorOnscreenBroadcastReceiver.java} (62%) create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenService.java create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenViewDef.java create mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/OnscreenViewListener.java delete mode 100644 calculatorpp/src/main/java/org/solovyev/android/calculator/overlay/CalculatorOverlayService.java diff --git a/calculatorpp/AndroidManifest.xml b/calculatorpp/AndroidManifest.xml index b03d296d..16db3a05 100644 --- a/calculatorpp/AndroidManifest.xml +++ b/calculatorpp/AndroidManifest.xml @@ -6,7 +6,7 @@ - + @@ -51,7 +51,7 @@ - + - + - + diff --git a/calculatorpp/res/layout/overlay_footer.xml b/calculatorpp/res/layout/onscreen_footer.xml similarity index 100% rename from calculatorpp/res/layout/overlay_footer.xml rename to calculatorpp/res/layout/onscreen_footer.xml diff --git a/calculatorpp/res/layout/onscreen_header.xml b/calculatorpp/res/layout/onscreen_header.xml new file mode 100644 index 00000000..857cba6b --- /dev/null +++ b/calculatorpp/res/layout/onscreen_header.xml @@ -0,0 +1,32 @@ + + + + + + +