Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Improve Dropdown Behavior in Questionnaire Items #2393
base: master
Are you sure you want to change the base?
Improve Dropdown Behavior in Questionnaire Items #2393
Changes from 14 commits
24404bb
730cd1b
5094e49
caeae47
9e30f45
3bead63
a6959c6
dd3ead3
d5d7355
916829e
6fbdf2e
d6bf618
ebdfb28
d6a4545
c1daa30
7bb2776
32cb079
c9baa38
36d16fc
a35e0a7
36a1806
b305bb0
7e68464
dd187c3
a994dc3
fcf841e
12fb10b
d840f61
041d121
c811179
3d1149b
00d235c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know if you can use draft answer here... try to set draft answer and reset the widget? i guess one problem might be the cursor moving? @aditya-07 do you have experience with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to avoid using this delay? why is it here? can you add some comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried to use several other implementation, using the
setOnDismissListener
as well but the internal mechanism of theMaterialAutoCompleteTextView
is such that it resets the view when the text get cleared.Our implementation should have been a straight forward one that when the text is cleared we display the dropdown but
MaterialAutoCompleteTextView
resets its state every time the text gets cleared.I will also put some comments here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you have to clear the answer in the questionnaire view item too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have added this here, now when the user taps on the clearIcon, I call the
questionnaireViewItem.clearAnswer()
as well.