Use SearchView. This is preferred method for Android >= 3 Honeycomb. I don't know if 5.0 Lollipop has a newer preference.