From a2dc7449d492c4fe4e8cb29d212c9d117bfee452 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Sun, 11 May 2014 13:21:28 +0200 Subject: [PATCH] fixed display issues in EntryActivity --- src/KeePass.sln | 20 -- src/PluginHostTest/EntryActivity.cs | 2 +- src/PluginHostTest/PluginHostTest.csproj | 136 +++++++++++-- .../Properties/AndroidManifest.xml | 2 +- .../Resources/Layout/text_with_help.xml | 2 +- .../Resources/Values-v14/colors.xml | 33 --- .../Resources/Values-v14/styles.xml | 188 ----------------- .../Resources/Values-v14/styles_dark.xml | 45 ----- .../Resources/Values-v14/styles_light.xml | 47 ----- .../Resources/Values/styles.xml | 174 +++++++++++----- src/keepass2android/EntryActivity.cs | 32 ++- src/keepass2android/LockCloseActivity.cs | 7 + .../layout/entry_extrastring_value.xml | 1 - .../Resources/layout/entry_view_contents.xml | 3 - .../Resources/layout/text_with_help.xml | 1 + .../Resources/values/styles.xml | 190 +++++++++--------- 16 files changed, 367 insertions(+), 516 deletions(-) delete mode 100644 src/PluginHostTest/Resources/Values-v14/colors.xml delete mode 100644 src/PluginHostTest/Resources/Values-v14/styles.xml delete mode 100644 src/PluginHostTest/Resources/Values-v14/styles_dark.xml delete mode 100644 src/PluginHostTest/Resources/Values-v14/styles_light.xml diff --git a/src/KeePass.sln b/src/KeePass.sln index b3d93c9b..b7895179 100644 --- a/src/KeePass.sln +++ b/src/KeePass.sln @@ -17,8 +17,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwofishCipher", "TwofishCip EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaFileStorageBindings", "JavaFileStorageBindings\JavaFileStorageBindings.csproj", "{48574278-4779-4B3A-A9E4-9CF1BC285D0B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppCompatV7Binding", "AppCompatV7Binding\AppCompatV7Binding.csproj", "{23233A28-D74F-4BF8-B4D8-834060840BD7}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidFileChooserBinding", "AndroidFileChooserBinding\AndroidFileChooserBinding.csproj", "{3C0F7FE5-639F-4422-A087-8B26CF862D1B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KP2AKdbLibraryBinding", "KP2AKdbLibraryBinding\KP2AKdbLibraryBinding.csproj", "{70D3844A-D9FA-4A64-B205-A84C6A822196}" @@ -210,24 +208,6 @@ Global {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Win32.ActiveCfg = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|x64.ActiveCfg = Debug|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|Any CPU.Build.0 = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|Win32.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|x64.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU - {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.Debug|Any CPU.Build.0 = Debug|Any CPU {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU diff --git a/src/PluginHostTest/EntryActivity.cs b/src/PluginHostTest/EntryActivity.cs index 59ed0af6..5cfd1c46 100644 --- a/src/PluginHostTest/EntryActivity.cs +++ b/src/PluginHostTest/EntryActivity.cs @@ -572,7 +572,7 @@ namespace keepass2android private void PopulateBinaries() { ViewGroup binariesGroup = (ViewGroup) FindViewById(Resource.Id.binaries); - foreach (KeyValuePair pair in new Dictionary() {{"abc", ""}, {"test.png", "uia"}}) + foreach (KeyValuePair pair in new Dictionary()) { String key = pair.Key; diff --git a/src/PluginHostTest/PluginHostTest.csproj b/src/PluginHostTest/PluginHostTest.csproj index 8f716b16..8fb6ffcf 100644 --- a/src/PluginHostTest/PluginHostTest.csproj +++ b/src/PluginHostTest/PluginHostTest.csproj @@ -17,8 +17,8 @@ Off Properties\AndroidManifest.xml - v4.4 - armeabi-v7a + v4.2 + armeabi,armeabi-v7a,x86 @@ -99,6 +99,7 @@ AndroidResource + @@ -126,7 +127,9 @@ - + + Designer + @@ -159,22 +162,6 @@ - - - Designer - - - - - - - - - - - Designer - - @@ -603,6 +590,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - #0000dd - #333333 - #00555555 - #000000 - #a8a8a8 - #303030 - - #a8a8a8 - - #31b6e7 - #4f7a8a - - diff --git a/src/PluginHostTest/Resources/Values-v14/styles.xml b/src/PluginHostTest/Resources/Values-v14/styles.xml deleted file mode 100644 index 6efa5214..00000000 --- a/src/PluginHostTest/Resources/Values-v14/styles.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/PluginHostTest/Resources/Values-v14/styles_dark.xml b/src/PluginHostTest/Resources/Values-v14/styles_dark.xml deleted file mode 100644 index 09b506dc..00000000 --- a/src/PluginHostTest/Resources/Values-v14/styles_dark.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - diff --git a/src/PluginHostTest/Resources/Values-v14/styles_light.xml b/src/PluginHostTest/Resources/Values-v14/styles_light.xml deleted file mode 100644 index a3428c00..00000000 --- a/src/PluginHostTest/Resources/Values-v14/styles_light.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/PluginHostTest/Resources/Values/styles.xml b/src/PluginHostTest/Resources/Values/styles.xml index 3becb33f..2de3172c 100644 --- a/src/PluginHostTest/Resources/Values/styles.xml +++ b/src/PluginHostTest/Resources/Values/styles.xml @@ -19,24 +19,19 @@ --> - + - + @drawable/ic_menu_remove_field_holo_light + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + @drawable/ic_menu_remove_field_holo_light + + 2dp + 12dip + 12dip + 3dp + 8dp + 4dp + true + ?android:attr/textColorPrimary + 18sp + bold + - + - + - - - + ?android:attr/textAppearanceSmall + 14sp + ?android:attr/textColorSecondary + true + - - - - + + + + + + + - - - - - - - - + + + + + + + + + 12dip + 3dp + 4dp + 4dp + true + ?android:attr/textColorPrimary + 14sp + bold +