From d58f0356f652bc5d3e1379a50ae0175a0914d9b6 Mon Sep 17 00:00:00 2001 From: serso Date: Wed, 26 Oct 2011 21:32:43 +0400 Subject: [PATCH] cellphone/calculator layouts --- res/layout-land/main_calculator.xml | 120 ++++++++++++++++++ .../{main.xml => main_cellphone.xml} | 0 res/layout-port/main_calculator.xml | 88 +++++++++++++ .../{main.xml => main_cellphone.xml} | 0 res/values-ru/strings.xml | 5 + res/values/arrays.xml | 9 ++ res/values/default_values.xml | 3 + res/values/strings.xml | 6 + res/xml/main_preferences.xml | 6 + .../calculator/CalculatorActivity.java | 72 ++++++++--- 10 files changed, 288 insertions(+), 21 deletions(-) create mode 100644 res/layout-land/main_calculator.xml rename res/layout-land/{main.xml => main_cellphone.xml} (100%) create mode 100644 res/layout-port/main_calculator.xml rename res/layout-port/{main.xml => main_cellphone.xml} (100%) diff --git a/res/layout-land/main_calculator.xml b/res/layout-land/main_calculator.xml new file mode 100644 index 00000000..83ddd626 --- /dev/null +++ b/res/layout-land/main_calculator.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-land/main.xml b/res/layout-land/main_cellphone.xml similarity index 100% rename from res/layout-land/main.xml rename to res/layout-land/main_cellphone.xml diff --git a/res/layout-port/main_calculator.xml b/res/layout-port/main_calculator.xml new file mode 100644 index 00000000..58a74050 --- /dev/null +++ b/res/layout-port/main_calculator.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-port/main.xml b/res/layout-port/main_cellphone.xml similarity index 100% rename from res/layout-port/main.xml rename to res/layout-port/main_cellphone.xml diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index e4d49319..aa7fe8e8 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -92,4 +92,9 @@ Разделитель разрядов Устанавливает разделитель разрядов числа + Раскладка + Телефон + Калькулятор + Устанавливает раскладку кнопок + diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 9fdb58ab..19744b9e 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -27,4 +27,13 @@ " " + + @string/p_layout_cellphone + @string/p_layout_calculator + + + main_cellphone + main_calculator + + \ No newline at end of file diff --git a/res/values/default_values.xml b/res/values/default_values.xml index 783249c7..649f8d77 100644 --- a/res/values/default_values.xml +++ b/res/values/default_values.xml @@ -24,6 +24,9 @@ org.solovyev.android.calculator.CalculatorActivity_calc_theme default_theme + org.solovyev.android.calculator.CalculatorActivity_calc_layout + main_cellphone + org.solovyev.android.calculator.CalculatorActivity_calc_grouping_separator diff --git a/res/values/strings.xml b/res/values/strings.xml index 7ca826b0..8e29e53d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -91,4 +91,10 @@ Space ( ) Grouping separator Sets grouping separator + + Layout + Cellphone + Calculator + Sets layout of buttons + diff --git a/res/xml/main_preferences.xml b/res/xml/main_preferences.xml index b0fa9f55..2812e567 100644 --- a/res/xml/main_preferences.xml +++ b/res/xml/main_preferences.xml @@ -29,6 +29,12 @@ a:summary="@string/c_calc_theme_summary" a:entryValues="@array/p_theme_values"/> + +