I have SearchView
in the top of the layout (not in the action bar), is there anyway to force this View
to be always expanded (opened)?
If not, i wish to place fancy image near it, is there anyway to make SearchView
hide this image when expanded (clicked/expanded)?
You can use the property android:iconifiedByDefault="false"
on XML or set programatically setIconifiedByDefault(false)
. Acording to the documentation this property set the SearchView
expanded like you want.
Take a look at SearchView.setIconifiedByDefault(boolean iconified)
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