From 5daec6aa320458408c3dbf4a4e603722d3c50c6b Mon Sep 17 00:00:00 2001 From: babaliaris Date: Sat, 14 Nov 2020 16:18:15 +0200 Subject: [PATCH] Added an ImageView to indicate this item is draggable --- app/src/main/assets/images/draggable_icon.png | Bin 0 -> 1519 bytes .../activities/bookmarks/BookmarksAdapter.java | 1 + .../main/res/drawable-hdpi/draggable_icon.png | Bin 0 -> 275 bytes .../main/res/drawable-mdpi/draggable_icon.png | Bin 0 -> 215 bytes .../main/res/drawable-xhdpi/draggable_icon.png | Bin 0 -> 395 bytes .../main/res/drawable-xxhdpi/draggable_icon.png | Bin 0 -> 537 bytes .../main/res/drawable-xxxhdpi/draggable_icon.png | Bin 0 -> 730 bytes .../main/res/layout/fragment_bookmarks_row.xml | 7 +++++++ 8 files changed, 8 insertions(+) create mode 100644 app/src/main/assets/images/draggable_icon.png create mode 100644 app/src/main/res/drawable-hdpi/draggable_icon.png create mode 100644 app/src/main/res/drawable-mdpi/draggable_icon.png create mode 100644 app/src/main/res/drawable-xhdpi/draggable_icon.png create mode 100644 app/src/main/res/drawable-xxhdpi/draggable_icon.png create mode 100644 app/src/main/res/drawable-xxxhdpi/draggable_icon.png diff --git a/app/src/main/assets/images/draggable_icon.png b/app/src/main/assets/images/draggable_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ef8638bd9fc6dc727eb5829f08a5f3b9f1b8e975 GIT binary patch literal 1519 zcmaJ>c~BE)6b}SQ!ZjKu5+Ep&HBqaQay3Fh1QIu*43`KLl*l213XwYs1(YKYz(lm= zs0sthVS#dpq5~ml5EZ2;9w;hCG+uy6p^c(_OaJk&?(FV2@BOZ~Gv9t9FV9T|x~94~ z9L|7;y8FO-4SR?>@cuoZ@gyu-@vb~SB3y@v;dxM#;?Tf&98S*&do*xm6;vEfTf%eS z=$BIQe$@NGBYP@m?2hN0Ss~bb=wpth|dTqT_#=9(=|4hd$P26 zQskR^RytWw{gpV_WmU>HtgDzZRdh^x^rFbKeKf9Rn(;&*AL+at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r;QI#zDvPok!ZN@lhbM)D-j=2!D+4uKCau=ZGU5@MkA+RY!pI2+|b5?is`;cPq1 zfI(WYW$4*q!hGU_Yd&cK%h!!xXzImd%q5Ez+##0XT83Bz-a&pUGhQ#d?ZO}vBBG4O z9%J4EM;55|l#>O(83|5VgAHdX@52n%F)mwSWtCh2;|yNS{)Ek;`2=%)%^b56=Lk?Z hQ;vRnk|O(F?%dgDTmCqJJP0Q?j>qwIZ*&dK`WLeUgZlsg literal 0 HcmV?d00001 diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java index 5ab65ee7..4fb82c25 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java @@ -57,6 +57,7 @@ public class BookmarksAdapter extends DragItemAdapter, Bookm if (m_fragment.bookmarks.get(position).getId().equals("-1")) { holder.itemView.findViewById(R.id.bookmark_dragable).setBackgroundResource(R.drawable.bookmark_row_dashed_bg); + holder.itemView.findViewById(R.id.bookmark_drag_icon).setVisibility(View.GONE); holder.itemView.findViewById(R.id.toggle_notification).setVisibility(View.GONE); holder.itemView.findViewById(R.id.remove_bookmark).setVisibility(View.GONE); } diff --git a/app/src/main/res/drawable-hdpi/draggable_icon.png b/app/src/main/res/drawable-hdpi/draggable_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d30285ec1e08038e3ce97a8762990b99a0b89be6 GIT binary patch literal 275 zcmV+u0qp*XP)rnZe6Ft2^`f8tXL9vT9B(&IB-CDo&9LDVPxIG^c3v(KO{`4|nRHGpbH`!0uhe z5Y(qvWg0-gEaw94p1!5DrGR!tLKu2dK%2ue4n1KYUU;TTn?90M-!>~C*Oz;r9SMxk zlTtoBxuGYetW$76a8m~PQ$v}1CrJ1>)c#D-6j(O* zp>|pxQ*u`HqJ1^%ru^D8bM}>KXRVkIDVTZmROz`J$y^oUs%7F9D>?jdT7dD6E7Q*T zG)wcP1ivW?(p9*nz9B*JCR0)qx8>FeS&Rp-v`&n2U{gxG`qVi6(31l>CY5_ub_ZlB ziYBv&pVeJZDR5DB(#uIcFDG4m5fpM^>xRXdg}&3d+Vw)!Vzp|E7#Viyb-q|DB_9QJ ODTAl0pUXO@geCyNO;LOR literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/draggable_icon.png b/app/src/main/res/drawable-xhdpi/draggable_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..bd8c3a1d7bf5161ce78d9ab8917ae9c378a6b5c7 GIT binary patch literal 395 zcmV;60d)R}P)R;3oUU#4P{G18m_z>> zz)ip*)!qc6mD9K8V-tvTCM30qP9V5CDQXj)Ku~qk*n>?71hE|}-ex-jJ|qm@20)nN z(iLa1uGiRy9_DQ8{k@aL+rUnmVgkQnr^TFoy^nYD@iwu;s!k!i%@!n9GeMpJ`4VDr zh*`)eix(LSE5X9dv9QxDK4@5cQtr1B*a)z=*dl$k$l`LB#q~Oi1_z54lS!S(H2HMu pM6S)MW`bm+TlO_%!SBOud;s^96Aw?*S6~1D002ovPDHLkV1l$+s-FM= literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/draggable_icon.png b/app/src/main/res/drawable-xxhdpi/draggable_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f5ee0e30bc284cfe3becfe85d1f59e9f14821591 GIT binary patch literal 537 zcmV+!0_OdRP)&! zBg5(#PM7jqt~KeQe!pGsitk=H|0!*xZGJVUD)%lpR_?Q@Nphp>s{9xM=dUL<|4AN_ z43&{R=cFekJKUt$`qUhsnv`7OK8V08;n+{NWF)|e2n>}eh{;|N7!cB8dy-QG1{`k5 zib=CAUYr1$Hu=7400=+;@-4{P0I4b5od{G1NQ0QPMW8xBbBoDi5vUT-Tw?N^2viFw zwwUa50#yTwWP+MLjCMR`c(6Oaf+UNv}G zjkb&iy92`v%N5gJgK5vS4-Juf0y-2or~0Vt-JWD#d1<00000NkvXXu0mjfzU1#Y literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/draggable_icon.png b/app/src/main/res/drawable-xxxhdpi/draggable_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3fe3ba1dfe181cadda381fbfe2e3f0812b8c482c GIT binary patch literal 730 zcmV<00ww*4P)F6n&=1U3r3<+H)f0lm~$zOj( z@fi|2O#bC`{Qi^tO~`kU&~?k-4|+n&1^4@zzb=U-g}Fi84Tq=MWF*O7RY?9eR&tG8 zO9pG;W5Onr$TiPfvh^dJFV9Q3Udjr zpGW6cFZo;5q{?sQ8Zrj~5C9+m0(w2p_fCM@(b0CO>74+VL)72ej(Y;UX-E4r+yn^l zGh_Zw+ev}|58BZoZ6_51O!tIi+D=jgSk#Wnd^-seV8?e<#kZ3v0s6k9s@9Q&3DC2= zg!pz6C!l*0LVY_uAfP+nQH*a#5>YpbG5BpZ$rqJZxr*P)HBH>xjPEGcw=UIE-6u#>@;?Pdh@}(d-Gdd{ylTZAY~*Q*d=jAo&0Q004->C$iq!0EtdzjsO4v M07*qoM6N<$f+4g_SO5S3 literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/fragment_bookmarks_row.xml b/app/src/main/res/layout/fragment_bookmarks_row.xml index 4ca5f8bc..f128d068 100644 --- a/app/src/main/res/layout/fragment_bookmarks_row.xml +++ b/app/src/main/res/layout/fragment_bookmarks_row.xml @@ -22,6 +22,13 @@ android:layout_marginEnd="8dp" > + +