Profile

Cover photo
James Lake
Worked at Salsabil Technologies
Lives in United States, Tampa, Florida
508 followers|3,627 views
AboutPostsPhotosVideos

Stream

James Lake

Shared publicly  - 
 
 
#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
1
1
Add a comment...

James Lake

Shared publicly  - 
 
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
5
Ro Primo's profile photomaxserv dexter's profile photoKomal Sharma's profile photo
3 comments
 
wow amazing
Add a comment...

James Lake

Shared publicly  - 
 
TeamPhones.com is a Smartphone Reviews, News, and Videos website.
1
Add a comment...

James Lake

Shared publicly  - 
 
Provides frequent updates and latest happenings in the field of technology
1
Add a comment...

James Lake

Shared publicly  - 
 
 
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
1
Add a comment...
Have him in circles
508 people
Pero Meditatić's profile photo
Rev Davis's profile photo
M H Rizvi's profile photo
Mo Hall's profile photo
rajendra lamror's profile photo
Ben Mclain's profile photo
Juan De Luca's profile photo
Raimonds Zeile's profile photo

James Lake

Shared publicly  - 
 
 
Are you predominantly left brained or right brained?

(I love this image.)
2
1
Add a comment...

James Lake

Shared publicly  - 
 
 
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...
2
Add a comment...
People
Have him in circles
508 people
Pero Meditatić's profile photo
Rev Davis's profile photo
M H Rizvi's profile photo
Mo Hall's profile photo
rajendra lamror's profile photo
Ben Mclain's profile photo
Juan De Luca's profile photo
Raimonds Zeile's profile photo
Work
Occupation
Social Networking
Employment
  • Salsabil Technologies
Basic Information
Gender
Male
Relationship
Single
Other names
james
Story
Introduction
At the point of life where I am standing I am enough satisfied with myself & I don’t need to change myself not even for a single folk. I am a kind of person fond of technology, gadgets and all stuff related to it. I just love surfing net and engaging with people with same interest.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
United States, Tampa, Florida