You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A little , probably not best, workaround to perform a click programmatically to trigger the search text and editTextView to appear. - Somehow it didnt work for me to just call the imageViewSearch to perform a click. - I had to add a new onClickListener to the ContainerView, and make it trigger the imageViewSearch to trigger lol
to add to the previous answer, just use a handler to delay the thing by 100ms and it should work
use this code in MulitSearchView class
fun openSearchView()
{
Handler(Looper.getMainLooper()).postDelayed({ // This method will be executed once the timer is over
binding.searchViewContainer.setOnClickListener {
binding.imageViewSearch.performClick()
}
binding.searchViewContainer.performClick()
}, 200)
}
then call binding.multiSearchView.openSearchView() from your Activity
worked perfectly for me.
how to set "search text" prorgrammatically in searchbar ?
The text was updated successfully, but these errors were encountered: