mancj / mancj/MaterialSearchBar
Controlling clear button
- Dominant language
- Java
- Stars
- 2k
- Forks
- 324
- PR merge metrics
- No merged PRs in 30d
Description
this is an amazing searchview with multi-functionalities, but there is missing an option for controlling CLEAR button. i've changed `.setClearIcon() ` to search icon but i am unable to control this function.
what i want is, when user type more than 3 keywords CLEAR icon should be changed into SEARCH icon and it should be controllable through `onButtonClicked()` method of `setOnSearchActionListener()` , so that's why i changed only icon through `onTextChanged()` .
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the SearchView clear-button handling and the setOnSearchActionListener/onButtonClicked path mentioned in the issue. Trace how onTextChanged currently changes the icon, then make the button action controllable when the query exceeds three keywords; done means the changed icon triggers the intended callback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100