Mauker1 / MaterialSearchView

Android Search View based on Material design guidelines.
Other
1.08k stars 154 forks source link

Remove voice icon #150

Closed maxi182Eman closed 5 years ago

maxi182Eman commented 5 years ago

I can't find a public method in the api to let us remove the voice icon, how could be this possible to do? Thanks

Mauker1 commented 5 years ago

You can try: setVoiceIcon(0)

AdamMc331 commented 5 years ago

I will take this one on. :) We can add a custom view attribute to have something like app:voiceIconEnabled="false" in XML.

In the mean time, you can use Mauker's code programatically as a work around.