Profile cover photo
Profile photo
James Lake
483 followers
483 followers
About
James's posts

Post has shared content
#AndroidDev #AndroidProtip #Usability

Be mindful of your touch zones! Suppose you have an app that presents a list of items that can be starred/favorited/bookmarked/etc., and suppose your 'starring' affordance is a star icon checkbox thing-a-ma-jig. Pretty typical these days.

To implement something like this, you can just drop a vertically-centered CheckBox into your list item layout and call it a day, right? But wait! Remember that humans have fat fingers and make lots of mistakes! What if a user accidentally touches just outside the vertically-centered checkbox while intending to star the item? Disaster strikes—the user's unexpectedly taken to the item details, destroying her visual context and all around messing with her chi. (See attached photos)

Alas, all is not lost! One way to fix this is to ensure in your list item layouts that your checkbox is flush with the list item view bounds so that any touches in the 'error' region (see second attached photo) still result in starring. But this can get clunky with drawable positioning and whatnot.

Another, lesser known, option is to use a TouchDelegate [1]. TouchDelegate basically lets a parent view define a region within its bounds, in which touch events should get forwarded to a given child view (in this case, the checkbox). Ain't that something? You can customize this logic (e.g. providing a circular touch forwarding region or multiple forwarding regions) by creating your own TouchDelegate-derived class. For an example of that see FractionalTouchDelegate in the http://code.google.com/p/iosched open source project.

I know you're all wondering "ok cool so how does one use this awesome TouchDelegate class?" … well, that's homework for the weekend. Enjoy!

[1] http://developer.android.com/reference/android/view/TouchDelegate.html
Photo
Photo
2 Photos - View album

Post has shared content

Post has shared content
Awesome.....
Hawaii Route 61, the road everyone calls the Pali Highway, is one of the most scenic drives in America. It connects Honolulu with the windward side of Oahu and when you reach the utmost peak of the road, you'll see this awesome view. It was on this spot that King Kamehameha fought a now-legendary battle to unify Hawaii under his rule, making it not only one of the most beautiful places on Oahu but also one of the most historically significant.

I flew back into Hawaii tonight and I'd forgotten this photo I took... It was on my desktop waiting for me. I must have thought it wasn't good enough to share, but after having been gone a few weeks, it seemed more alive to me than before. I love going up the Pali ... Hawaii is a place you'll go for a drive, just to drive. I especially love it, when you're at the lookout and the sun shines between the mountain tops and lights up the valley.

Hope you all can join me for my Waikiki PhotoWalk this Sunday: http://bit.ly/ztj0YD
Photo

Post has shared content
Are you predominantly left brained or right brained?

(I love this image.)
Photo

Post has attachment

Post has attachment

Post has shared content
50GB of storage free forever

Box.com is giving away 50GB of storage, forever, if you sign up with the Android app in the next 30 days. It's starting to get pretty competitive in here...

Post has shared content
STUNNING iPhone 5 concept phone by Italian designer +Federico Ciccarese.

For more photos, check out the story on Mashable.com: http://on.mash.to/wnf5fH
Photo

Post has shared content

Post has shared content
Wait while more posts are being loaded