From d8d79e85f1ae1a3dd77c0d2b0f94ed88e50390a1 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Wed, 26 Jun 2013 01:45:33 +0400 Subject: [PATCH] history improvements --- .../res/drawable-xhdpi/kb_clock.png | Bin 0 -> 2069 bytes .../res/drawable-xhdpi/kb_remove.png | Bin 0 -> 679 bytes android-app-core/res/values/colors.xml | 1 + android-app-core/res/values/text_strings.xml | 1 + android-app-core/res/values/theme_gray.xml | 11 +++- .../calculator/CalculatorPreferences.java | 2 + android-app/res/layout/history_item.xml | 4 +- android-app/res/layout/saved_history_item.xml | 4 +- android-app/res/menu/history_menu.xml | 7 +++ .../AbstractCalculatorHistoryFragment.java | 58 +++++++++++++++--- .../history/CalculatorHistoryFragment.java | 9 ++- .../history/HistoryArrayAdapter.java | 28 ++++++--- 12 files changed, 96 insertions(+), 29 deletions(-) create mode 100644 android-app-core/res/drawable-xhdpi/kb_clock.png create mode 100644 android-app-core/res/drawable-xhdpi/kb_remove.png diff --git a/android-app-core/res/drawable-xhdpi/kb_clock.png b/android-app-core/res/drawable-xhdpi/kb_clock.png new file mode 100644 index 0000000000000000000000000000000000000000..9e933e686fa57c1fcccd8f8a0a8a1a1d9e07f936 GIT binary patch literal 2069 zcmV+w2Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i*o4 z6#_8MCwox<00)&xL_t(|+U=cNj8@eZ$Ny`<(L}I<_#i@U89Fm+y`l3SNjc0>*@lrm@qc5B8$zThl}hsh4_rt91-j>76ExLK!X=5T81V3{4Saem zX{MxeCCv)IlJs9m?}guSNxLMChTnfl8a1<%T>(CwaFcYUq$QHBleAdU`30FjENQEx zS0s%{dc(}<_P>ny0pKBEKhjN|0YS>+lYLHShfS-Oj-coK}o-nbY2?{;?9@!EU-DbTTnm9o_c2LJ&Ft-_XW&8%-;i|NdFsP?9>{sJ zp|?r$j@j=qvwyTp8r00TOS;#2+B`|Owj@B9rEYLG{Ir?u7NuJ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$X3r-rz^Tcavdw(jWhbRSN&1eN9VpsxDQm>S zep_FbG%TsfWz3F;7`|2p`Bgm^E)TVon}!kB$5e@nU}Rgy9&7;d`+=Kjm(4t-}cqfc2~&E@h{YH0;~m6e`+vhIRY zmRQfYTv>6uYn4@QENb(IcO`9=G$Lul%yy&_vn70+>QPqUXiy*T581D5Vf4%}(L1$L z|7b`}jEBEbeZ24FPD#6yOB;02MHgLk(ed~Q0laR23srO200000NkvXXu0mjfyQJJC literal 0 HcmV?d00001 diff --git a/android-app-core/res/drawable-xhdpi/kb_remove.png b/android-app-core/res/drawable-xhdpi/kb_remove.png new file mode 100644 index 0000000000000000000000000000000000000000..15c28f513dd4385344cd5b235427ed3afff9deae GIT binary patch literal 679 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGojKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPggqHc3$?K7O~fUknUP>Ygr+Ar-gY z&f4h5kpkvDLl*{F=69`rluJeD-Rs9-L5h_ z@%dfb_lD)24jhV4w0J)*^U_S!o;{Uq`+ebgjywk#S{S!U$zRyJ&+Ul!)2-J93!52t zR!#mA^HbZaJ&8e=gV}%~v0?qHzGq9Pc)HjGt+RjWc}bV$LX!Yn0>dE&9tVjAMv$7d ztDn{$@VPWa$Zbl{JLRNZ-b@<*W~rPl%Vap}Z?=$aqvub-*7X_gtD{1f9#5Y4r$#8O z{*CqOUHdLw_4bsPwyW>xm{@ss`lNSeSDtxYs_tUkFJau@QC!SyryBd_wT!{?ms_qb zxY{u9*Y>LnObQH4QC9;0Z@}rPTMfxmj_EjYQ z`Jx}yHUDDMo!bGQ?-}zH$Q}7Bz|+9M@j>l?W#0>+F*6tifZ9L2Kb-TL=~$slG0#M& zhC-Q(GR`Sm6|S32+4Nk8S%$sPUWFN`b`NJkkFpg<149}Eivt6TiEN6om|>4{P*R5p z6VKz0DH2MXS$A$-xMgpe)B}@_--=Qohxs-H%UpD1U@-uhps?Vl!0fFP0%azOIWG}P z5OH5}RN$uWiKVTX;7(8A5T-G@y GGywqWdj1>$ literal 0 HcmV?d00001 diff --git a/android-app-core/res/values/colors.xml b/android-app-core/res/values/colors.xml index d9524fbf..8a18c6d2 100644 --- a/android-app-core/res/values/colors.xml +++ b/android-app-core/res/values/colors.xml @@ -1,5 +1,6 @@ + #ffffffffff2e2e2e #ffffffff #ff393939 #ffffffff diff --git a/android-app-core/res/values/text_strings.xml b/android-app-core/res/values/text_strings.xml index 48ce605d..5a6e7b25 100644 --- a/android-app-core/res/values/text_strings.xml +++ b/android-app-core/res/values/text_strings.xml @@ -113,6 +113,7 @@ Toggles colouring and styling in calculator editor Sets the theme for calculator Clear history + Show/hide date Next constants are undefined: {0}! No grouping separator diff --git a/android-app-core/res/values/theme_gray.xml b/android-app-core/res/values/theme_gray.xml index c5adc6ea..55bdb2ee 100644 --- a/android-app-core/res/values/theme_gray.xml +++ b/android-app-core/res/values/theme_gray.xml @@ -31,12 +31,17 @@ 6dp - +