From 0eafd4c96cbbdd7eaef1686ae08d2e160908ef0a Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sat, 23 Feb 2013 12:43:10 -0500 Subject: [PATCH] Android: Add Update and Delete buttons for each project listed, only make them visible when the project has been selected. --- .../res/drawable-hdpi/ic_menu_delete.png | Bin 0 -> 1413 bytes .../res/drawable-hdpi/ic_menu_refresh.png | Bin 0 -> 2025 bytes .../res/drawable-ldpi/ic_menu_delete.png | Bin 0 -> 1247 bytes .../res/drawable-ldpi/ic_menu_refresh.png | Bin 0 -> 1695 bytes .../res/drawable-mdpi/ic_menu_delete.png | Bin 0 -> 967 bytes .../res/drawable-mdpi/ic_menu_refresh.png | Bin 0 -> 1278 bytes .../res/drawable-xhdpi/ic_menu_delete.png | Bin 0 -> 1880 bytes .../res/drawable-xhdpi/ic_menu_refresh.png | Bin 0 -> 2857 bytes .../res/layout/eventlog_layout_listitem.xml | 4 +- .../res/layout/projects_layout_listitem.xml | 46 +++++++++++++----- android/BOINC/res/values/strings.xml | 4 +- .../boinc/adapter/ProjectsListAdapter.java | 18 ++++--- 12 files changed, 52 insertions(+), 20 deletions(-) create mode 100644 android/BOINC/res/drawable-hdpi/ic_menu_delete.png create mode 100644 android/BOINC/res/drawable-hdpi/ic_menu_refresh.png create mode 100644 android/BOINC/res/drawable-ldpi/ic_menu_delete.png create mode 100644 android/BOINC/res/drawable-ldpi/ic_menu_refresh.png create mode 100644 android/BOINC/res/drawable-mdpi/ic_menu_delete.png create mode 100644 android/BOINC/res/drawable-mdpi/ic_menu_refresh.png create mode 100644 android/BOINC/res/drawable-xhdpi/ic_menu_delete.png create mode 100644 android/BOINC/res/drawable-xhdpi/ic_menu_refresh.png diff --git a/android/BOINC/res/drawable-hdpi/ic_menu_delete.png b/android/BOINC/res/drawable-hdpi/ic_menu_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..24d8f6a4be54237073aa7f4862ac5afc55a7edca GIT binary patch literal 1413 zcmeAS@N?(olHy`uVBq!ia0vp^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83{1OQadY$X5y literal 0 HcmV?d00001 diff --git a/android/BOINC/res/drawable-hdpi/ic_menu_refresh.png b/android/BOINC/res/drawable-hdpi/ic_menu_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..e13315f5da34487cba048540f41fed1b14706180 GIT binary patch literal 2025 zcmVC5uat znCKD`O-rn~1e*Zqs>mQ}`-uB+M>R(3R zlib`te&>14^PcCt=e)rGV>;-+0-Qh)5FpSjs7Z{CvL*lm=`p~+%N;0k3FQAB~;fiEXcjqTHpih17fuZ2@p7ejxB^>xb*~`Y)Dl zHy_egQYrkH#5jM#7wqn2`0g8H-2BRlcK#z^#>_%EMFD3 z`2J4N69g;lJ6(RP{y^|M0Iv{aI#%Hv7lg0pj4%8pXY=lwBUTGoFkZ^e%^kwUznT+)Xokh1pSN;eP&-buI}tVlL1U}xUwN!yQk^6MM~X2fjUG&0S%6 z<^8k}DnG9S7(n5eDdKq=@~Y{66SX@`sT_bhZ4B=l0F){SL-&TbKY-j~Qa}NLPnM!| zy#x%T>D@Gjeq|H!T;p-xDj5KF!^Q>6XGV>*>DtDaUCc#^pzyCIFc85l8{+^|fs1Bd zYECg$V;4+l(BawL_-J;s^Ax}|j52_Mh{|M;UKDy(MeFu;9RZ)J6Tis(el1^{JrDWk zfCT9R0OF+bQ?W3EAY;AO0S7uxOBiqE)YMr51`xHUo?oU^RE;x75niGK3=wpLrfnE! zI8WplBcI@|d-m)qWRZn~5yY0N;CTZjD;MVkNv{oJ2GBzH-36)+(2Fn^nyMM{+6 z4KX78_=`RvHIAAI&6~{kmLQiKD{r+t8!X{0nK-NL$ePi<9GwNOOb_R9ZYw?q4GaSk zfDQ?UE`*kH-$wt8I!PXwsI6h;J{_J3N1mF(U|&qaTY!MTsFz=Px~`I3lnP5Il)_Io z>NqS9O~$Kd2n2Zm2ezX1M-}zTCIfG&_agcY2a2!=K~Oheuv(NNaZfCRI3=G+#fO3e z2>>7qhnU5&FC-s1T>A_uHaIJP635M0zaP2fWj+A|NN2L6s)ao$FbE8t&iP1tJWV@zi6>i5aO79Za8?!&-wMM;KR$8P1_Ry3CQWyBPBYf&h*#4 zJJQ!FH{cuAttvDPuWhJ*xqLTyNNX#j}1qrrfhV96GPZ1bT1 zNiQH*$*p1=1(-dDBnxp09g)c^HD}}5B)LWJgPc9s?{;RQ9&};_2|zKZO6>&z9XbF8 zv$9Epj)eTFeI%+bE${Y{i8<*hs^BSwbi{)W7W6tAu~o7HGhBeDuQLgP0Y`RvFUGFj zwl0P)mt^}3z!xDPg;Yc-NP2}1-uBazp(o8pWi@o35t*W1{hDqi> z4HhIIFw$eLz-u`8nbu>Eo@hBy>#tnzYtkx&q?n3&z3yP#4P(G}P3<2SXE8JYc1OPk@2IE8dH<=*@WB0VyMVrVXACSQpcJE_>Y_H;s7&G zssH)-CmXOH6R?zbhyVZpC3HntbYx+4WjbSWWnpw>05UK!F)c7LEiyP%GBP?eH##*l zEigDbFfgP}a>)Py03~!qSaf7zbY(hiZ)9m^c>ppnF)=MLF)cDUR5CI;G&edmGc7PU zIxsNR6Uub}000?uMObuGZ)S9NVRB^vL1b@YWgtmyVP|DhWnpA_ami&o00000NkvXX Hu0mjfQR<0n literal 0 HcmV?d00001 diff --git a/android/BOINC/res/drawable-ldpi/ic_menu_delete.png b/android/BOINC/res/drawable-ldpi/ic_menu_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..dbad3ddc845735431adc8536d58c95caad66d5b6 GIT binary patch literal 1247 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8JTQ>svSewKXxD{n z>{nOlPTZ!LdFk0RyL0!lEq7e!-pT)X$>en>Bdh0cwfk2;cQ1d;=EPTfGt$Lwc-NR1lFxqJ zmf5a*>r~>cpI`s)lyzdPIL$DvgN0LClG|UJA@#YJag+k9g@=jSbHysf$6$gQXa?G-(oQ}~R9Bb;`xx?m?#d&`rf;d*6p*qLiTKgKwz zs69;=Ws`UsvC{sJcu9xzQJ2EWJ}qtEek)yi&%4+D?y@guWGgZ=)0f@vcmK3$_v$Og zVcr+hwi%{gShnuX=Yy*zJh}9$U3m7gW5x08x^2sjUemq!;7j?xf(uK8ejn@K6nw1Y zRsNgxAyb~!or`*XyRG@Uvi}5?g{+b08qEnFml`I&h`XQvANxFTE7PnSKVXoU-6(S^POI!%|VrCR5k$sa;#tR%G3X+QuB=YIsdb_qy1@ zT|y^B6}7Zd_MAL^tXR{2ao>%eAFj^>LPNK_`W6xqY|~|aPHNNny%*kJUNo~j$64so za=vBP+$~lwo3@PWg09KR#v8{4Uq&Cc%Se2i!0c4KxYp>3%}NVV?y&0{|EvquxO3b$ zhsn)6{oTRFD1$`_2dfNQH#}^A>;90#{-aX3s+NfD;m0|TZSLP%QyTKeg`s__dx~lD zo5V-^9T@UAJDgE?xvEi0?-M8It%~ojZtObtSpHSqk-NewmZyPPS+&G9q9i4;B-JXp zC>2OC7#SEE=o%X88W@Eb8d@2cSQ(q@8kk!d7)%sjbsI%PZhlH;S|x4`54?mxg#|yz zhP2F_lGGxrq@2q&%@GmBBFu gD5>C?o0y&&l$w}QS$Hzl2B?U^)78&qol`;+0K#|@_5c6? literal 0 HcmV?d00001 diff --git a/android/BOINC/res/drawable-ldpi/ic_menu_refresh.png b/android/BOINC/res/drawable-ldpi/ic_menu_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..b25dc061616a316beea1da94d8f15d2b6ed6a146 GIT binary patch literal 1695 zcmZ{kX*e6`7RRHtt17K3s*I&VL=#IqiK<~}1lJx-)RxFnq=Lkfn54bY8md8qs;zn% zwU$;jZ48;2#}YbXOoOUrtW|E+Zj?sdm{0e9xF62>J@5NF|L1%=S$;l9byYo8005wl z@^A}~(e$vC$E0UMM9TQ^1Q=l&xpOrN9}%v08c2sQLV04*c&XW`Ly|E zGEJ(~mTb{;kn$A)hwtRC?kr5uX6DX(l)E<1Uf4IBj9J)FWjH=seT{Ml96$S>>c@mW!u)=@-Le*TD0>D9)^=xHv}?9wl6%}Uw7I?&%8C!acu*x z`f}R!QA*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ete.png b/android/BOINC/res/drawable-xhdpi/ic_menu_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..65b9caed1b3cd421404c4d06cdb7ce976f20b2f1 GIT binary patch literal 1880 zcmV-e2dDUnP)ht(u000JHNkl@1=@`$k$QUttXsjYQT5?lgukCh)f!To9ErR#~=JreGzvAy46*F-n*1U zUpV#FFeD5EAXJP_oAIAcT*wjh&?*Jc&y9V1yfbGKG6v>gZ~%g4k&hc@K6nBV&g_$* z#Oe^H{CKpRg!oW=eu@l8E&vWoEO}HdR97zn2t#egK>!Hs5&mrcDu{q~ z?5~>cTHg(Va&BXOv2S@YU)KZUP7I*$%~{(WyEvEF*du+?{T)w-O4wsP4i#BH*Vtxr zy8B@O5iJ2x3P7~cunXXYqf=FBeghFq<#H$iL;htocM%-AeKAk)qJ#N3pB+5U;nHjYxh8A6YOk;L=L#~GF z`Lh2@*6fB3Ta_ExUuV`fCFm#s1k5wxX*>D+^f!`k+DD}xQK=^2y1kCeF)wdBThnYqF2v$UI&$$yw!cxU5&)JI&QCc4S5W#112DL%>K-6WeFa z*;J`elSZvNAD=M`b|Es%m~pcg8-_LC)2^<#Re!_p=4qEUUGj?hciekm3Sy`*1_DSJ z3ky`qlWw%@I-UA*vTU(L2X-WYC!jbyUOJUv>m5Ti70&QJgo0FDRtwae4G(_nv$gE^ zA7?2k9>tN96T}@*6CwnNh_#+ZRA%eX&%NEgmRDxejiTd8F#rW=5WQr-Uw?CaMX$T7 zSx;~KZH;8hZye%vF^VPVX0ohSuG&S(U$I~z+oh?t#~bA zpcsIF$V;s=0TC7A4)vQt;# z910J4d{0N%hO|MAE7L4x;E%z2^&`1J@%F?31R{r~!LgzgBJkS!%d zjuXWI@EveyXUKXeKpIdvc?W{XfX3go%>1p!-=i-!=GCYm;s|$|Qbqf3 zfq=!RA=r!Z^4i8`bSYlxl~j>(0P?6dH_Yq@yr!!$u`yE^*}oT&{#8W(k&aw7Z^)0k zudHva%lrQAAiiY(4B%RkNb^SgmHaG|o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(LUlHu{0uGxK%v1)4A^((@@+q)$JL9RL-5&#DU`AkrQ{ON&V@5%*iJhE=X7A`=FuM}})T9^g9|RyB7%GYU#`I=C@5AfG1L7kB%-*3eMrO{T1x zRH|kr1~<=sI_g+>Fq-wHhe~6)Z7? z8r{*#;$J_@{#xhP&}sN$<>+uQ;OvbQ`4y2dg!>7#r6~neG?yBBr#AjZ!T*UF z=42{qPG07yxCE(Q z0|3#j$t_C#ULRzmWa@9kdg`S#Yu}tEr6igbS5~;U^XjZHSbEUJ8~ZW5HynHWs{j0u zQ$YGg`7K>KNWDOzHRq=}3%5?eRbB za_+EJW<)GCjpO+Am99F1%Gkt27}+-*^CulI-J>TR9}S`NGMS~$t&fU94KeMe%o6YK zKS720F;E;t$Y01if&HiMk_;9L3B&%P^rLf|vr?qe6Ul0$ zMy4?N5NGlUaVR~qax;gBC$@!C93X|*8KH@8ulWo!IrKOc63MYUm301%S)voA_SH6Q zbj}_cDJy^%q&=KpC)CJ1Ol==@^1VCiE{{?G??jb!zj60=_wH8|7M{AY46HObmFtPA z38~UpZZXe1R&`Pr%*BLjb?!WQkc`o=qjU?sXNcjo+SQg(3M~1UiXCj9DI1eT3vLKa zhbRAzNj5O%5H0ciO(f1F_M5-EVukqn2&n~- z+Ke!zeCU07`N))_;Hdj9-+Ii{A9(b=;hxxRwS{LZ8L={<1{8ezxz-2qEi1rQ4&5Jx z%S2&t4GBMZRH{AohZ-hVfLX^$mWc_W&5D&&?$vZQn%rr-JdLpmHnQ}nsJHIoiznJ<=(xoG7w}DH A8UO$Q literal 0 HcmV?d00001 diff --git a/android/BOINC/res/layout/eventlog_layout_listitem.xml b/android/BOINC/res/layout/eventlog_layout_listitem.xml index cf43dfe926..7712a679a5 100644 --- a/android/BOINC/res/layout/eventlog_layout_listitem.xml +++ b/android/BOINC/res/layout/eventlog_layout_listitem.xml @@ -30,7 +30,7 @@ android:clickable="false" android:focusable="false" /> - - + android:orientation="horizontal" > - - - - + + + + + + + + + + + + diff --git a/android/BOINC/res/values/strings.xml b/android/BOINC/res/values/strings.xml index 86b92be56f..de0e96e07b 100644 --- a/android/BOINC/res/values/strings.xml +++ b/android/BOINC/res/values/strings.xml @@ -131,7 +131,9 @@ Delete Cancel + Add project - + Delete project + Update project + new waiting for download diff --git a/android/BOINC/src/edu/berkeley/boinc/adapter/ProjectsListAdapter.java b/android/BOINC/src/edu/berkeley/boinc/adapter/ProjectsListAdapter.java index dd572005db..2443b8146f 100644 --- a/android/BOINC/src/edu/berkeley/boinc/adapter/ProjectsListAdapter.java +++ b/android/BOINC/src/edu/berkeley/boinc/adapter/ProjectsListAdapter.java @@ -19,11 +19,8 @@ package edu.berkeley.boinc.adapter; import java.util.ArrayList; -import java.util.Date; import edu.berkeley.boinc.R; -import edu.berkeley.boinc.adapter.EventLogListAdapter.ViewEventLog; -import edu.berkeley.boinc.rpc.Message; import edu.berkeley.boinc.rpc.Project; import android.app.Activity; @@ -32,9 +29,9 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; -import android.widget.CheckBox; import android.widget.ListView; import android.widget.TextView; +import android.widget.ImageButton; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; @@ -48,6 +45,8 @@ public class ProjectsListAdapter extends ArrayAdapter implements OnItem int entryIndex; TextView tvProjectName; TextView tvUserName; + ImageButton ibProjectUpdate; + ImageButton ibProjectDelete; } public ProjectsListAdapter(Activity activity, ListView listView, int textViewResourceId, ArrayList entries) { @@ -97,6 +96,8 @@ public class ProjectsListAdapter extends ArrayAdapter implements OnItem viewProject = new ViewProject(); viewProject.tvProjectName = (TextView)vi.findViewById(R.id.project_name); viewProject.tvUserName = (TextView)vi.findViewById(R.id.project_username); + viewProject.ibProjectUpdate = (ImageButton)vi.findViewById(R.id.project_update); + viewProject.ibProjectDelete = (ImageButton)vi.findViewById(R.id.project_delete); vi.setTag(viewProject); @@ -110,13 +111,18 @@ public class ProjectsListAdapter extends ArrayAdapter implements OnItem viewProject.entryIndex = position; viewProject.tvProjectName.setText(getProject(position)); viewProject.tvUserName.setText(getUserName(position)); + if (listView.isItemChecked(position)) { + viewProject.ibProjectUpdate.setVisibility(View.VISIBLE); + viewProject.ibProjectDelete.setVisibility(View.VISIBLE); + } else { + viewProject.ibProjectUpdate.setVisibility(View.GONE); + viewProject.ibProjectDelete.setVisibility(View.GONE); + } return vi; } public void onItemClick(AdapterView adapter, View view, int position, long id ) { - ViewProject viewProject = (ViewProject)view.getTag(); - notifyDataSetChanged(); }