From ef9ab6bae56766c72a3cb19f36cad40b3465f6b3 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Thu, 6 Feb 2014 04:02:07 +0100 Subject: [PATCH] tests and theme related workarounds for problems with ART --- src/ArtTestApp.zip | Bin 0 -> 13581 bytes src/ArtTestApp/Activity1.cs | 45 ++++++++++ src/ArtTestApp/Activity2.cs | 25 ++++++ src/ArtTestApp/ArtTestApp.csproj | 84 ++++++++++++++++++ src/ArtTestApp/Assets/AboutAssets.txt | 19 ++++ src/ArtTestApp/PrefActivity.cs | 36 ++++++++ src/ArtTestApp/Properties/AndroidManifest.xml | 5 ++ src/ArtTestApp/Properties/AssemblyInfo.cs | 34 +++++++ src/ArtTestApp/Resources/AboutResources.txt | 50 +++++++++++ src/ArtTestApp/Resources/Drawable/Icon.png | Bin 0 -> 4147 bytes src/ArtTestApp/Resources/Layout/Main.axml | 21 +++++ src/ArtTestApp/Resources/Values/Strings.xml | 5 ++ src/ArtTestApp/Resources/Xml/pref.xml | 16 ++++ src/KeePass.sln | 26 ++++++ src/keepass2android/KeePass.cs | 2 +- .../Resources/values-v14/styles.xml | 14 +-- .../Resources/values-v14/styles_light.xml | 6 +- .../settings/DatabaseSettingsActivity.cs | 2 +- 18 files changed, 378 insertions(+), 12 deletions(-) create mode 100644 src/ArtTestApp.zip create mode 100644 src/ArtTestApp/Activity1.cs create mode 100644 src/ArtTestApp/Activity2.cs create mode 100644 src/ArtTestApp/ArtTestApp.csproj create mode 100644 src/ArtTestApp/Assets/AboutAssets.txt create mode 100644 src/ArtTestApp/PrefActivity.cs create mode 100644 src/ArtTestApp/Properties/AndroidManifest.xml create mode 100644 src/ArtTestApp/Properties/AssemblyInfo.cs create mode 100644 src/ArtTestApp/Resources/AboutResources.txt create mode 100644 src/ArtTestApp/Resources/Drawable/Icon.png create mode 100644 src/ArtTestApp/Resources/Layout/Main.axml create mode 100644 src/ArtTestApp/Resources/Values/Strings.xml create mode 100644 src/ArtTestApp/Resources/Xml/pref.xml diff --git a/src/ArtTestApp.zip b/src/ArtTestApp.zip new file mode 100644 index 0000000000000000000000000000000000000000..292094c30514b0aed2d2a4ad800a5f844e0e663a GIT binary patch literal 13581 zcmai)1z1&Euz(LpcZ+lh(jgrp-HPO)1nKTZx;q8w?(Xgm>5%S5=@xhg@8gQsd*9o* z&zya}z4q_ST5D#lJtHmg1Ofwae-z>g3;z7_zaQ`*$!BRTr(s>lxYo_VL;*W?BESze{P7;ai-9h=T?V_ zmS2c9PLM|+$&F&luJh%^nOL4=FSyaG3^MG6BG!d!l1u-zZh zpZkNoh|Fw=R#NAq`lLQ@5XIhi^afo1C25HYRG4~OVg$2Bxo@GaJ&xH!e#zlpnPbkf zvFS>D<`AZB=EDrgUy@)}d_0G)A*^J4a2I`J(%?xG&NpG7)?~ZMtdneX!oQ^GZ`MQ+ zmbTE%nTqOqnLhP_`|TIHnmk1_-_~8pT8CbY3$raQEv3|+oY>pxgLjM7$8~-Ci_(|* zofC{bSn?A$Dz(c~t*$puevOvTIKqMpvB@(Rpi$BX8ZrMdT9`niMJJs1Z94->=cZtv z9lMQTjGShMCJa6>fNBH|s$;1mTeFt~_ZrPlx|u7+M_8WeVsXE*Joy_r4rgm>V9+VK zgjvkxq*5Rzt_Y(mf15^Lu8!W8QD4YKds|Tj5q`pm!}5)8+Zu!>S<>On2cP#inzE}w z%{V_oUS8>*!1`ij7zVwUhY?yL6^Y;q*(9;0>s;|1z~bp z00)&4{pkJ@ zGGPk&mS*vsOTl~%`U_t+{t529*_MTgmA5YUP$~xXem@cS(XLCg7S9ovR6aiUcV(Ba zE}AwfHwx9$+pl(@m#g*E`CX;WkUi=q^4R$EN4Ba9(o3ARCwBQ7@okfcq)IGnH`rX> z!X-Za^wp^|E26J11P@du z>Nn2#xXP!QMDbZxa>nUw7}VxHG6%BOabQym>B3_+Rf5zq1QM;9Yhp?jKsjYBw+yZT zYH|VTmrKuceUsC|P;>k*%f1ACgLzq^^&#gyfIr6vRa98^toEop0cm59OAKwQ7EH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?X*NH}i1dj*}>xPFtrkbgQFG{6J$empqB z{*L^sq~|e1ao6joIuCLyNBWOp@n@mX1LJ;J)%Q>9$5D#ghu=a>+iyi$DB#>y4(BN z^dOtm{?hRm2j*u<$nWJH51e~5a{VXgUy3~*qpfCYf1+(F{*tr8p+B!5qyH?tc#Osa zl?eZ4&c9W>ulssbhVdBNI~V=47a_d<()2<8!v0$-{sDV$S$ELKBkZq;@EF5w-M@0* zaSxI_?@z=2nZAF(+#9yyzc7C$^B;qGHv)d@huZSHe5~I+7)1E{Aoy+ajiUdDet+jl zAM=0|e{mk94ftQzfARh+oBCK$Bv6F-S9|`=d&sRm=DJD!&VAtjUwY#Grl&XPKk={J z|J__YrnOl8MSGAB^j|a>z@J;N$67Z3KeWF$WRI~o_6{`nZr}m?ARlA@+{HY`9)mW5 z|ElD}uzkFzd5nHb@9;AmS|R)u4j<$%^q)@rcl$zt0`I?~|91uWnD#90FZ=#e{-VMB ztP}lxh51;~*Z&Xg(R%YS_+gs-H~8O{gb(0*cK}26A8Ot&5FewmH#9EqUBZKWa1D=j x{Bs%kfFc5+c>gcd!=myr5}_!j>pu8DARnZ(1mt}=0sss27YB-iYSi~v{{w-0tNs80 literal 0 HcmV?d00001 diff --git a/src/ArtTestApp/Activity1.cs b/src/ArtTestApp/Activity1.cs new file mode 100644 index 00000000..e6e66c74 --- /dev/null +++ b/src/ArtTestApp/Activity1.cs @@ -0,0 +1,45 @@ +using System; + +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; + +namespace ArtTestApp +{ + [Activity(Label = "ArtTestApp", MainLauncher = true, Icon = "@drawable/icon")] + public class Activity1 : Activity + { + + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + + // Set our view from the "main" layout resource + SetContentView(Resource.Layout.Main); + + // Get our button from the layout resource, + // and attach an event to it + FindViewById