Hello Community I was wondering if you could help me in the following question. I am working on a project where I need to be able to move a bitmap a certain distance when I touch it. (step 2 in the snapshot) However,on reaching the boundary the image should be wrapped to the other side as shown in Step 3.
I read the property animator and how it allows tweeting of views but what I don't understand is what kind of layout should I use. Should I use a RelativeLayout
or LinearLayout
? or Should I use a canvas
?
How do I mask the parent view (view B in the snapshot) to achieve the view wrapping effect.
Thank you kindly,
Add your xml layout:
I hope this will help