Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar searchView Cancel Button Clicked not working #31

Open
Morons opened this issue Aug 4, 2021 · 0 comments
Open

Toolbar searchView Cancel Button Clicked not working #31

Morons opened this issue Aug 4, 2021 · 0 comments

Comments

@Morons
Copy link
Contributor

Morons commented Aug 4, 2021

There is No setOnClickListener for the search_close_btn
So here it is!
Please Amend!

		// Cancel Button Clicked!
		val cancelButton = searchView.findViewById(R.id.search_close_btn) as View
		cancelButton.setOnClickListener {
			searchPlate.setText("")
			val searchQuery = searchPlate.text.toString()
			Log.e(Constants.GLOBAL_TAG, "SearchView: (cancel button) executing search...: $searchQuery")
			executeNewQuery(searchQuery)
			searchView.isIconified = true
		}
	
@Morons Morons changed the title Toolbar searchView Cancl Button Clicked not working Toolbar searchView Cancel Button Clicked not working Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant