From 1009fe2467cc9874f556e29e3b778aba6de39448 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 10 Jul 2016 15:35:41 +0300 Subject: [PATCH] Black like button + less threads --- .../matan/ara/sagi/thesocialnotework/Utils.java | 6 +++++- app/src/main/res/drawable/like_icon_black.png | Bin 0 -> 7522 bytes app/src/main/res/layout/note_display_full.xml | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/drawable/like_icon_black.png diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/Utils.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/Utils.java index e580c68..573b616 100644 --- a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/Utils.java +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/Utils.java @@ -147,7 +147,11 @@ public class Utils { } public static void URLtoImageView(ImageView iv, String url){ - new setUserAvatar(iv, url).execute(); + if(bitmapHash.containsKey(url)){ + iv.setImageBitmap(bitmapHash.get(url)); + }else{ + new setUserAvatar(iv, url).execute(); + } } private static class setUserAvatar extends AsyncTask { diff --git a/app/src/main/res/drawable/like_icon_black.png b/app/src/main/res/drawable/like_icon_black.png new file mode 100644 index 0000000000000000000000000000000000000000..3b97bfa664db00a1ac91d5acd9e04a89ce54c339 GIT binary patch literal 7522 zcmb6;c{J4T*Ux7R#y(2+GEtGr5=Dg>*(yoX@>R*MC|R;Im=8*_w}()aXhEgy46;gILPaL*vyER!OJfw zzu!H3>@fhclZOrUPx*KL=?-{!Zzy1CnzHwyUBr*kzeb4W%}~(+v|>yEDwu@cb+pnh-)lY6VUJq zp)P3{abHLrdbGF}#4=U6*QYl*tJAxfqTw{NJMkz0zizu@0Ra+*0DuF41Y3|dJOC(c zVZr|~_5WP{A0+>Qj$*er469BQNStSEz!01^zV& zL-mzCy*9bWAq?SV*#m>TE0a5gNdOJ+d2|iI0gsO4Y$eVd<(&jK0nkF5Qmy6mAuqB^ z+o@|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&?zLOHC?y;WNZiRhKdrU4 z5GKGg)U?n0`->P;gw{=^9&jA`{3<1M5hf|8%r_$pd#ITJmC-{O>3{1QZgW^PnhRi2 z9H8~608X}349R;A6R#di0zg6tX7)q@s(T*JU`YBfxhu|rBmq>m0X&cgH0xNHzwL_$ z9#;_pz$0McA_8F64MC%Y07AeR0<`Q5L|6?ovP%$kBmm=OFfj~sv=;w8tc3hK{063Y z`EA{eIPgtC;hBGjDck?1phaK`8b!uaFt8@Xf;nsrbnOISr1Ovf0RzTw!4Yk=j0_kD zdGi$c!TBk$aPVI`82!9?Y?va)fYnVHnmy!?v%v=k1h{CMZh$a^Jh{zaw7|%z4-uwf zQEr^=q&_$k2^M5whtD<_b{>KSNd)EQpUPQ{Dl_`KlMe%GgteKX;0z5d<3iBuf*l%o zaHg4be{%f-KZ4c>6&@x5+b3KLFxnK?Nr()lS;NA^5~9T^R$$RR=C|QBP~wiek#p{z zx{$}z03Xy?R46NA;1RJam( zbyx?XwQveIfP{l}l()Ct5nBU{ix7Msv~X%Sa2S?l5O5HdQnrLI0$YXfotCO?g0O;e z3E(ck_oJT{tfiQPDMPpd9zTZB%!{CSPPqnny5AAw(q7UBjBLR95U{jL5e(Yu`pO>M zfM%<+;qNl|`JcUyoLUng@OX?um!pny$zj3M0W~~UI2e|sexZ^c3^;Diiw)(>XgeDI z`;EkgR&Rp+S3280I^Y7{t{#yO`8A;ia4=7V*FJ|kj0-l^KJxw!tqnJj#e#%y{^0fw z)jQMWTVO;Kr0~}wU}=E_ptf_00RV+9EC2-ff%^2nO#MHX{|C~4pl_*Xb9vv5R#xvS RcmeT&!$!vpa}L^u{TB-2x3K^K literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/note_display_full.xml b/app/src/main/res/layout/note_display_full.xml index 5b33b2a..ac519e3 100644 --- a/app/src/main/res/layout/note_display_full.xml +++ b/app/src/main/res/layout/note_display_full.xml @@ -141,8 +141,9 @@ android:layout_width="20dp" android:layout_height="20dp" android:id="@+id/imageView9" - android:src="@drawable/like_icon" - android:layout_gravity="center_vertical" /> + android:layout_gravity="center_vertical" + android:background="@drawable/like_icon_black" + android:backgroundTintMode="multiply" />