I'm creating a application in native android application, where I have a purpose of this use case in which I have to draw a circle using canvas upon user selection on top of recycler View items and also I have to able to drag the circle vertically . How can I implement that?
Asked
Active
Viewed 90 times
0

I'm Coder
- 125
- 2
- 13
-
you have and ui link where we can se what you're trying to say? – Abhinav Chauhan Apr 21 '22 at 05:45
-
@AbhinavChauhan- I have updated the UI. In the above image, the circle alone needs to dragged against each numbers. The number will remain always constant . – I'm Coder Apr 21 '22 at 05:48
-
Have you try this https://stackoverflow.com/questions/28972049/single-selection-in-recyclerview – Amit pandey Apr 21 '22 at 05:59
-
@Amitpandey- The link explains about the single selection in recycler view, but my requirement is completely different. The selected circle needs to be dragged against each numbers in my case. – I'm Coder Apr 21 '22 at 06:01
-
@AbhinavChauhan - Any updates on it?? – I'm Coder Apr 21 '22 at 06:44
-
search for recyclerview item decoration , you can definitely do it with item decorations, you can take inspiration from https://github.com/lriccardo/TimelineView, – Abhinav Chauhan Apr 21 '22 at 06:56
-
@AbhinavChauhan - can you provide some sample for the same? – I'm Coder Apr 21 '22 at 06:57
-
read the edit @vinayak – Abhinav Chauhan Apr 21 '22 at 07:00
-
@AbhinavChauhan - I think the timeline implementation is different from my requirement. – I'm Coder Apr 21 '22 at 07:23
-
Yes the implementation is different , but I don't think you are going to get some copy paste thing , you have to implement yourself the examples just give you the idea of concept , and the concept is it can be using itemdecorations – Abhinav Chauhan Apr 22 '22 at 05:08