kevinsawicki/wishlist — pull request #4 by donnfelker (2013-03-28 23:07:47+00:00)
Title: Increase Hit Rect & Transform to Density Pixel

Just added a couple of helper methods to the ViewUtils class. Apologies for the lack of tests. Just wanted to share what I'm using right now. If time permits I'll come back and add some tests.

- transformToDensityPixel: Transforms a regular pixel to its density pixel equivalent. Great for when you need to adjust a View visually at runtime.

- increaseHitRectBy: Increases the hit rect of a given view by the amount provided. The amount is in regular pixels and is transformed into density pixels using transformToDensityPixel. This is very useful for when you have small or tiny icons on the screen that are hard to tap on (or darn near impossible to tap on). Simply increase the hit rect of the view and then your UX gets a ++. :smiley:

Feel free to accept at your liesure, I just wanted to share something I found useful for my current project.

Cheers