I'm trying to set up a screen so that when you click on the magnifying glass at the bottom of the phone it doesn't show the standard search area at the top of the screen: essentially, have it ignore (or catch it so I can do nothing) when the magnifying class is clicked on?
Override the onSearchRequested method of Activity class:
public boolean onSearchRequested() {
// Do whatever you want here.
return true;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With