if u start your application in api level 11 or even higher, u can learn actionbar through below link:
https://developer.android.com/guide/topics/ui/actionbar.html
Adding an Action View, for example, SearchView.
For another, if u want implement this function, u can see ActionBarSherlock api to make it compatiable, please follow below link: