From 8e841232cff59d67b93c475397b03f8ec5cc7006 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Sun, 15 Jan 2012 03:02:00 +0400 Subject: [PATCH] refactor --- res/values/{attrs.xml => attributes.xml} | 0 .../{default_values.xml => preferences.xml} | 0 res/values/styles-common.xml | 52 ------------------- res/values/styles-default-theme.xml | 24 +++++++++ res/values/styles-light-blue-theme.xml | 28 ++++++++++ res/values/styles-violet-theme.xml | 26 ++++++++++ .../{main_preferences.xml => preferences.xml} | 8 +-- .../CalculatorPreferencesActivity.java | 2 +- 8 files changed, 83 insertions(+), 57 deletions(-) rename res/values/{attrs.xml => attributes.xml} (100%) rename res/values/{default_values.xml => preferences.xml} (100%) create mode 100644 res/values/styles-default-theme.xml create mode 100644 res/values/styles-light-blue-theme.xml create mode 100644 res/values/styles-violet-theme.xml rename res/xml/{main_preferences.xml => preferences.xml} (95%) diff --git a/res/values/attrs.xml b/res/values/attributes.xml similarity index 100% rename from res/values/attrs.xml rename to res/values/attributes.xml diff --git a/res/values/default_values.xml b/res/values/preferences.xml similarity index 100% rename from res/values/default_values.xml rename to res/values/preferences.xml diff --git a/res/values/styles-common.xml b/res/values/styles-common.xml index afe3576a..5d74735c 100644 --- a/res/values/styles-common.xml +++ b/res/values/styles-common.xml @@ -17,40 +17,6 @@ 1dp - - - - - - - - - - - - - - - - - - - - - - + + + + + \ No newline at end of file diff --git a/res/values/styles-light-blue-theme.xml b/res/values/styles-light-blue-theme.xml new file mode 100644 index 00000000..ebff5daf --- /dev/null +++ b/res/values/styles-light-blue-theme.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/values/styles-violet-theme.xml b/res/values/styles-violet-theme.xml new file mode 100644 index 00000000..551a367f --- /dev/null +++ b/res/values/styles-violet-theme.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/res/xml/main_preferences.xml b/res/xml/preferences.xml similarity index 95% rename from res/xml/main_preferences.xml rename to res/xml/preferences.xml index 91f2e057..78da14f5 100644 --- a/res/xml/main_preferences.xml +++ b/res/xml/preferences.xml @@ -12,7 +12,7 @@ - @@ -22,7 +22,7 @@ a:title="@string/c_calc_round_result_title" a:defaultValue="true"/> - - @@ -93,7 +93,7 @@ a:entryValues="@array/p_layout_values"/> -