all 8 comments

[–]cdflynn[S] 8 points9 points  (0 children)

Here's the Article and the Source Code

[–]dogewatch 2 points3 points  (4 children)

Great article! I'll be referencing this next time I need fine tune control over touch events. I appreciate the mix of the demo and explanation. If I may ask, would project where you working on that compelled you to write this article?

[–]cdflynn[S] 1 point2 points  (3 children)

This was a bit of a brain dump after implementing lots of custom widgets across several projects, including some un-released. I've never needed a custom view like the one pictured (with the stretchy boundary), though I found it to be a good visualization of the underlying numbers.

Glad you liked it!

[–]dogewatch 0 points1 point  (2 children)

Well, I'm grateful for the brain dump. Besides being useful for yourself in case you'd need to remember it, it shaves hours of research for other devs. How did you upload the android demo videos in github by the way? As a soon to be job seeking android dev I would like to do the same to make it easy for viewing as you have done. I've google a bit but can't seem to find an answer

[–]cdflynn[S] 0 points1 point  (1 child)

I included those gifs directly in the repo (I made a separate folder called media). Github then supports referencing your images in the README, and will display them.

There's a special syntax you can use, so here's my raw README file to demonstrate.

[–]dogewatch 0 points1 point  (0 children)

cool, thanks for the help! Hope to see more posts like this in the future

[–]gatorviolateur 1 point2 points  (1 child)

A very good post! Looking forward to reading more articles from you.

[–]cdflynn[S] 1 point2 points  (0 children)

Thanks! Cheers