I am using action bar support v7 library. When I expand search view I get look like this.
I dont want this search icon on left. Instead I want to place it in hint like image below.
I want to do this programmatically. How can I achieve this?
Thanks.
I think I figured out what the answer is.
To expand searchview by default if I use
mSearchView.setIconifiedByDefault(false);
it will show search bar like first image
If I use mSearchView.onActionViewExpanded();
then it shows like second image.
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