Android Gallery View bouncing effect in first and last image

view story

http://stackoverflow.com – i got stuck in a problem and that problem making me sick from the past week not able to resolve it ,so need everyone help.The problem which i am facing is related to Gallery View of android.I had using a gallery view and setting images into that through custom adapter.Everything is working fine till now the problem arrives from here only.I want to implement elastic effect just like IOS in gallery view of first and last images.But not able to find any thing suitable . How can i achieve that. Thanks in advance. (HowTos)