From 0e700ce21b042030f41d3c488807afb925461f08 Mon Sep 17 00:00:00 2001 From: DSIW Date: Fri, 10 Jun 2016 04:49:35 +0200 Subject: [PATCH] Add icons to list item --- .../utils/PasswordRecyclerAdapter.java | 13 ++++++- .../res/drawable-hdpi/ic_action_secure.png | Bin 0 -> 394 bytes .../drawable-hdpi/ic_folder_grey600_24dp.png | Bin 0 -> 140 bytes .../res/drawable-mdpi/ic_action_secure.png | Bin 0 -> 317 bytes .../drawable-mdpi/ic_folder_grey600_24dp.png | Bin 0 -> 123 bytes .../res/drawable-xhdpi/ic_action_secure.png | Bin 0 -> 510 bytes .../drawable-xhdpi/ic_folder_grey600_24dp.png | Bin 0 -> 194 bytes .../res/drawable-xxhdpi/ic_action_secure.png | Bin 0 -> 624 bytes .../ic_folder_grey600_24dp.png | Bin 0 -> 259 bytes .../main/res/layout/password_row_layout.xml | 34 +++++++++++------- 10 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-hdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-mdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_folder_grey600_24dp.png diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java index af9a6776..e1b33e2a 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -1,5 +1,6 @@ package com.zeapo.pwdstore.utils; +import android.os.Build; import android.support.v7.view.ActionMode; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; @@ -8,6 +9,7 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageView; import android.widget.TextView; import com.zeapo.pwdstore.PasswordFragment; @@ -35,12 +37,14 @@ public class PasswordRecyclerAdapter extends RecyclerView.AdapterUPz(kVRjTi87u+`{IDQ-XbUm?Lc60~AXAJ^0E^!t>>HkbhQzgt`_2q3Ua@jr zx6JeWVO#)<_Ysa2Lm67Eqr$0>$RN?`>oo7+0|>>jO4djwtxoC#nkTM3wYmAUgQWFE zcT`nzbYCR8eLaU60r4~y@walR$Kskfj0&U;u1UuvASpUJ$C$w2P=EqMz6+sdZxFU0 zU5?mcRhcYnrm;okDMVu5P;TSCcH(8l#?`hY%7>6K2Pi-R3Q&Lo6rcbFC_sTh`1SX| o&1&}7NgE1_5JCuP$XkE`04cRe$f0T_ga7~l07*qoM6N<$f@2n|k0wldT1B8K8u&0Y-h{y4_S2yx9DDW^J)aej7 zydym(q0@kYQDh3+$@l-Fx;OMYJGM)$jysX|=gPE?LGCA2IE!l#;Xn1f6D!FLL nNcjguFRb}7QMXy;&11EnM`}*_Yc$LN8qeVA>gTe~DWM4fpph+; literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_action_secure.png b/app/src/main/res/drawable-mdpi/ic_action_secure.png new file mode 100644 index 0000000000000000000000000000000000000000..d49217234375e7bf5965a40e23110a8856333b86 GIT binary patch literal 317 zcmV-D0mA-?P)F6XV1NN5xf+d)jk$o7 z43zui?Af#5=;8pN#j-#u42adxq;3K6DxgCi)64-t%R!cA0x=g3C7@844s^sVsyhH0 zAVhm*>!2#+>>{VFg zSK&}gH3ta87}$arO-z^;4xkBO8q@_5FkuNJ1t%!)%RBmTE;w>u-j25YN5P;5009O7cRV+8N`jHk P00000NkvXXu0mjf2nTdi literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_folder_grey600_24dp.png b/app/src/main/res/drawable-mdpi/ic_folder_grey600_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..88cb71c30826585289d5ee0926cad2cd97e8f4f1 GIT binary patch literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM0wlfaz7_*1Cr=m05R22v2@+}xOg4N;eOa$^ z!@+}jRneg+gDJ_)>%IPZUjDHEi|R_LfBjh!pQPdhmp){5YPO&DrEB4yE9E;<(iyHx WuamPdR}BW5#^CAd=d#Wzp$P!@nJVl6 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_action_secure.png b/app/src/main/res/drawable-xhdpi/ic_action_secure.png new file mode 100644 index 0000000000000000000000000000000000000000..2a0898381a14166d1f1b363ff3a41f120471f4d7 GIT binary patch literal 510 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+7#DcDIEGZ*dNX6a|6vD_By5}z(&%8&JNK@9 zql@xS`59|vrA}U%lw{a3$)rPyWoymsISY3l+WK@;-tU^p)4lV`^K0im^mku`&c1764NZ0d#fsKbWv}yir|NG?KX~FgTSL?Suwqqd zD?d%+hn@my+Pnvr{BkL~cF9#~_Ai~@-17~)S>$Kz6rRt&<8k3v_bj*lJesfnI!~KD z<^Fofa*4LYiK#blpPJI(`FHoMS@Tb)UG+VeGwEquVccf*JHIqo^(7aG?q1{hm!0+F zimN)S?5EUjaw#r8eaH6Z@_wBUTiI`f6|Q^myx!L&S;&3zz#zTW?>*DA7`X^No#fNq{&z0? zy;1bDvv<9``^ed7@^$S7TJYD@<);T3K0RW@2)cpVe literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_folder_grey600_24dp.png b/app/src/main/res/drawable-xhdpi/ic_folder_grey600_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..7f135821196aad7cfbbce581dd75ff1945da3056 GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA0wn)(8}b0DPEQxdkch)?uNm?+8wj`r`Z4c& z@ZM5DsIgg)Ws0X+?h*;f%g*QIm6TPfh3E>u~~{vjLEBb-)v?4?fO8~p+VY!k%@&vgW3J9dp#fPv3!M% sZD;kj?A#xll=MBGFS#skrTsfz-^*K9EZ@vN7w9MkPgg&ebxsLQ07djh$p8QV literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_secure.png b/app/src/main/res/drawable-xxhdpi/ic_action_secure.png new file mode 100644 index 0000000000000000000000000000000000000000..d8c094ed86aaf11d95485d47fed6143e12ac2f9d GIT binary patch literal 624 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGok|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+n1noC978H@y_vn<|FDBd!)g7EQb%|q%^GJOoZutceQZ%7 zOS5BA`;&Ty^M3xx5k{>m97|3bm~!y6eLuv>@#dY|?X3m(r^jej)n4ECzUq4Rb`2(= z%`nj5b@NBIx{U-+(#?|TZ|3?Gp$!W4+_#Wo@nUouEO!GbUuppYt*uE$$OPG&QX6pJw&u&ANq_qI>j(fr){UgMmeXL7;&l!gy-kBolkXjTbk)$*z`p-~D!J{OPNHlKQOK zf&#TQ8UJ-Xx6I>Lv+e(Elg^RE2i1jQ1YS;pWaxj#$J0cZVUY!-9oFvQHeg5>D%-&} Rubc%W;pyt^zK^z#4! literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_folder_grey600_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_folder_grey600_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..5ab94892adfe719ca766ce7a7c08ef4de5095226 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY0wn)GsXhawPIj?J!ZWnJ==Ag`6pt}e%>vX>n^_s){@ ztWuY}kl^-End>Tkt1a_9W6T=wOx%&rvQz2f9iFKDjkB66q`rLO__a=%mpdi1^AJL8xXNTaZ9n!UhWk#?4r9HHWdc=JfC~n zN5-~Sap~7Hp3nN88(NC){k`7D)9j~}m*&zd@!uHL?uu>k`Ioo}=qm + android:layout_height="wrap_content"> + + + android:textColor="@color/grey_500" + android:layout_alignTop="@+id/type_image" + android:layout_toRightOf="@+id/type_image" + android:layout_toEndOf="@+id/type_image" /> + android:layout_alignLeft="@+id/type" + android:layout_alignStart="@+id/type" /> \ No newline at end of file