From 2abace56325e50d02ceb3ce9299d34f085705b51 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Wed, 4 Jul 2018 13:41:30 +0300 Subject: [PATCH] Minor bookmarks activity UI enhancements --- .../bookmarks/BoardBookmarksFragment.java | 2 +- .../bookmarks/TopicBookmarksFragment.java | 2 +- app/src/main/res/drawable-hdpi/ic_delete.png | Bin 0 -> 198 bytes .../res/drawable-hdpi/ic_remove_circle.png | Bin 392 -> 0 bytes app/src/main/res/drawable-mdpi/ic_delete.png | Bin 0 -> 132 bytes .../res/drawable-mdpi/ic_remove_circle.png | Bin 270 -> 0 bytes app/src/main/res/drawable-xhdpi/ic_delete.png | Bin 0 -> 196 bytes .../res/drawable-xhdpi/ic_remove_circle.png | Bin 509 -> 0 bytes .../main/res/drawable-xxhdpi/ic_delete.png | Bin 0 -> 279 bytes .../res/drawable-xxhdpi/ic_remove_circle.png | Bin 746 -> 0 bytes .../main/res/drawable-xxxhdpi/ic_delete.png | Bin 0 -> 357 bytes .../res/drawable-xxxhdpi/ic_remove_circle.png | Bin 1060 -> 0 bytes .../main/res/layout/fragment_bookmarks.xml | 5 +++- ...w.xml => fragment_bookmarks_board_row.xml} | 20 ++++++++----- ...w.xml => fragment_bookmarks_topic_row.xml} | 28 +++++++++++------- app/src/main/res/values/strings.xml | 3 -- 16 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_delete.png delete mode 100644 app/src/main/res/drawable-hdpi/ic_remove_circle.png create mode 100644 app/src/main/res/drawable-mdpi/ic_delete.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_remove_circle.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_delete.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_remove_circle.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_delete.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_remove_circle.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_delete.png delete mode 100644 app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png rename app/src/main/res/layout/{activity_bookmark_board_row.xml => fragment_bookmarks_board_row.xml} (65%) rename app/src/main/res/layout/{activity_bookmark_topic_row.xml => fragment_bookmarks_topic_row.xml} (66%) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BoardBookmarksFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BoardBookmarksFragment.java index 3f93ddc4..6b7dee26 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BoardBookmarksFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BoardBookmarksFragment.java @@ -73,7 +73,7 @@ public class BoardBookmarksFragment extends Fragment { for (final Bookmark bookmarkedBoard : boardBookmarks) { if (bookmarkedBoard != null && bookmarkedBoard.getTitle() != null) { final LinearLayout row = (LinearLayout) layoutInflater.inflate( - R.layout.activity_bookmark_board_row, bookmarksLinearView, false); + R.layout.fragment_bookmarks_board_row, bookmarksLinearView, false); row.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/TopicBookmarksFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/TopicBookmarksFragment.java index d2b982f0..7679ad2f 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/TopicBookmarksFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/TopicBookmarksFragment.java @@ -87,7 +87,7 @@ public class TopicBookmarksFragment extends Fragment { for (final Bookmark bookmarkedTopic : topicBookmarks) { if (bookmarkedTopic != null && bookmarkedTopic.getTitle() != null) { final LinearLayout row = (LinearLayout) layoutInflater.inflate( - R.layout.activity_bookmark_topic_row, bookmarksLinearView, false); + R.layout.fragment_bookmarks_topic_row, bookmarksLinearView, false); row.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/app/src/main/res/drawable-hdpi/ic_delete.png b/app/src/main/res/drawable-hdpi/ic_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..83e1bb27c0edd5cc33661b523be0a98f6ac7b958 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBdOcknLn>~)y|J6OK|!Q7(X0Hz zEyW(|n?d(1We!M69J1)y__fe8hque!>5=9?zC+UmgbrMB&M!J8@I^deVWh9#rsp$M z6!uTJ{LMj+O;k$3T&!-Ez!z1G+rerJ5)`hK3AzY4vOowHrd)FVdQ&MBb@0J7LfI{*Lx literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_remove_circle.png b/app/src/main/res/drawable-hdpi/ic_remove_circle.png deleted file mode 100644 index e4cc857927bebe83c3fec9039d5d1b68d161cd6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 392 zcmV;30eAk1P)#1v^GAyoABZr+ zr@oor8?DiHW3>tEFQh@J4@`gJtaj6tu@Fn5>cURfWV39(1c!WX&GK@u) zP+xGLktHi{o@JqlK^exF5{erTiYTE|142hih+17K=29I}V%{qy^dtrb5^Y65%=`E% zq1Jt}))n=t0ih)&8Lm;`jUly{!}wEM`;Ip;7o9znZH|2Dt|WE*mg#kLsv}f m2VNgB4&3sl_y0filR_`p6Q>$Fohupu0000h`kbctBN zaD>0%hrLuC!&K$dP5)CK9ZY77ebkV2y+6tz>);C3#bN;mo5EEj{x!*P|7rZ8IpF diff --git a/app/src/main/res/drawable-xhdpi/ic_delete.png b/app/src/main/res/drawable-xhdpi/ic_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..36f26ac71cb59737675d270921fd6a0a14f5a30f GIT binary patch literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtZci7-kcwMxZy0hl81Oh;oVTpv z%)GC~D_$wH9R9Jze(ZCtT_D3IfvnB+xq;MZl$mKe`K4{CW-moJzv6cPllkfAKFOvf5 axL?kc@omeM&GL*KApM@MelF{r5}E+t4L=+J literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_remove_circle.png b/app/src/main/res/drawable-xhdpi/ic_remove_circle.png deleted file mode 100644 index c8ef34d2f941ce63f83a9d23b7e0e0b512cf8f65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 509 zcmVaa@BpB+5JN;;8xk5r;&TvQK!S~U+IloNo6IGI zL^Hd$f9B#9UqZM5zwd6@-I?_+p6C)ES14sZs$p%{4_}!&o5t7XqmtLaF}~r+yl3GZtu31Zs>0E~%Tj6~pka)XkjWmZ3mbrXDCW zD`>ufQ`wSo#7JPEQWKXX7B!Q+1IMaum4JajBWYvHx=*;=p=Cd9C8930{+?`nt zf2g~??pqp8L&}{`a=;N_yU)aI)39~KRK#{)q-l{F{54gYJmfpaj@eRiZ`1v4g>`Yv zTE)K21PhNfKA{L-&+%Fdca^#9pgR-D1d{Uur7kI&zW)r!00000NkvXXu0mjfe1X>o diff --git a/app/src/main/res/drawable-xxhdpi/ic_delete.png b/app/src/main/res/drawable-xxhdpi/ic_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..4d806633b09e2c3535f2460afaab269f6089f818 GIT binary patch literal 279 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!_dH!3Ln>~)y=};K$Uvmwq2E`& zT^5zr7e7}p@CUapQh%X&WUbqY72Q*xY^^!GpY7K~J0q2|?`pEX*m5*5Ffy@l2q-wD z-dfgn@fP~d`{(gm$j{)WrTZ>PN#;1Lljg{wCF+?YFE@ED6o=3B6^b7sz5zQrG+gpNP*=$ZLWZ3Bm!ZB*k3fq)2zfCz|yeieo$p&Yae6`?ZZ zK~>Dd?-lVe^~X*?-L?Y7p#`Xb0H2&ypj&7j>azi87&?dE1yCAQgU+C|i9jRJodlFd z)&DYwOaSVKjupcE?Ep&X3N!<~28hFYfigM)bwC>$!2E3$3Iz=mh4LEWur8sVpn!Uz zCyjAfk9e#~fue@s{6vbV0_xEGW!0!Fo^uip(7J&*tQFZnGX~?Zrey*3Yw|hAkIzYQ z89+xC;IQ`m1{$#lhn4md=*~i*8^3^tEyQ7^`~W()80b_KC@yKSOP6ZRE<>6DEm(}h zniBykH~@6b3ltVyU^k^VsEY?^(g7USI1f?BQZ^YlUSyDhrZ_`gLSpb3Y7#(03bX}P2M zg4wMDKzWfB#d!ySWie8$h@I0qsiwauhqA5 zmA7Qpmq+#kynNUZx%ElqO}%NHLsog=nUe8bWN+l9aMV`DqFWW$bCNQjgQ^|RUYsVq z#(i*+1@=5Hlg3mWdl1{hT{sh%#mTOF-1>b+yb69@!k=y7zSStysrq>7AD9pj0TB=Z c5sVASz+aSW-r_4dv|-X;Tvw!l1# zPV+}yZx*;6V(3ep!}M6KiqX4CIwSM6bxnBEKX;wwVZXEEGxzo|Ff=eQ2rw`(F*qDRd zy%57ZNoF2Zh8QC@i)jo69KDi#_Wz$PV`eh<#M= z{`k|g>l@1=AFn&})5oG+?sR$_*Zf(BiyoM5{9aJGYIZRr*ue@63@kw3<}BxrD7%~? SkhI+&KbLh*2~7YLZeOVY literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png b/app/src/main/res/drawable-xxxhdpi/ic_remove_circle.png deleted file mode 100644 index 5bfad8b3106e5992d774be3dc407d663a529e55c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1060 zcmV+<1l#+GP)WD>l+0Xh}T|}FL#pAt+0jo zLM4e=`4)Sj)H65-bZv9aoadaGGv|NtyIEP(|8IBBoM)bylghm=rhqvR0t7$+fB*;p z5C8!H0#49Cv=aTq7%@wfhz+7l97xLYHSx0eLgR#4xc${9$5|7$Q1| zItVzsD(-sF`$y?&OD+0QSofw7hu_eE;u@z85yo_P+m53?vg}4b2 zH&7oO2;bv9k&cUioZ+cuScn_L8@3C$O?-1Oe2+Dv$yNb5$HPA=;ihc@t~xsG{BJl) z+ajRGu?wy$^Bl7y4goI`7{14dX#w2{4&UQ}DFKZ!y~E{Zo5-3FFpcn!)s7++(1p-X zkdI10o#iEElcnt1CvY&1X zKLT12t}@MG2$(>y%DmwgP#;m#lq>A2PDxb-bRtyWv~vm=MxeeKFO+N^U3 zC__M?{b+#&96*3J`w-xO01QEfhag;p4PS&Y4K+Lsoxu&2Ht#qDj3P*FiYUgJrGRp@ z<=qh~0x}5F?1GG75n-BJl1$0EHbV8sGfn{=2-G)ioC50PZ8d^bV@K{DWo=CyN3hDg z3Zpl)1;HwFHw*!y<$49-D(#{_6V?WeUIct955wFcBTg6GM95Xy$oV{%RHs}!fS~nj zKO6#T<(5nYewEYY7Nn9MzNM z%8k3JsmXB(Ux-_rnT63=CcX*Fjt)Cn?!3Zk@5?xLVV>g}^P>{r&5m5?svG2(?U)eY zA4c*?pY*KmzJ-q4mu8Hz4qam?3lL`_qoZ|9Dm?gf_xR1Qz=a_aYqG4zt` z)oe2{%*08+zlwa~$d^9ZAUq}aU9HPj$$iP5d~HE)3o6Pny;-G290Kq_X8-{Z03ZMY e00ck)h?2jD)2xd`kd!F^0000 + android:orientation="vertical" + android:showDividers="middle" + android:divider="?android:listDivider" + android:dividerPadding="16dp"/> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_bookmark_board_row.xml b/app/src/main/res/layout/fragment_bookmarks_board_row.xml similarity index 65% rename from app/src/main/res/layout/activity_bookmark_board_row.xml rename to app/src/main/res/layout/fragment_bookmarks_board_row.xml index 7d2632a2..a29222b0 100644 --- a/app/src/main/res/layout/activity_bookmark_board_row.xml +++ b/app/src/main/res/layout/fragment_bookmarks_board_row.xml @@ -8,26 +8,30 @@ android:clickable="true" android:focusable="true" android:gravity="center_vertical" - android:orientation="horizontal" - android:paddingBottom="6dp" - android:paddingEnd="16dp" - android:paddingStart="16dp" - android:paddingTop="6dp"> + android:orientation="horizontal"> + android:src="@drawable/ic_delete"/> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_bookmark_topic_row.xml b/app/src/main/res/layout/fragment_bookmarks_topic_row.xml similarity index 66% rename from app/src/main/res/layout/activity_bookmark_topic_row.xml rename to app/src/main/res/layout/fragment_bookmarks_topic_row.xml index 09158cb6..60b23b81 100644 --- a/app/src/main/res/layout/activity_bookmark_topic_row.xml +++ b/app/src/main/res/layout/fragment_bookmarks_topic_row.xml @@ -9,26 +9,29 @@ android:clickable="true" android:focusable="true" android:gravity="center_vertical" - android:orientation="horizontal" - android:paddingBottom="6dp" - android:paddingEnd="16dp" - android:paddingStart="16dp" - android:paddingTop="6dp"> + android:orientation="horizontal"> @@ -36,8 +39,13 @@ + android:src="@drawable/ic_delete"/> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f95c254d..df0d3cd4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -100,7 +100,4 @@ Cancel Open Download - - - Hello blank fragment