We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PeliasSearchView should allow cursor position to be set without performing a lookup on the EditText.
PeliasSearchView
EditText
Currently cursor position can be set with the following code:
val editText = peliasSearchView.findViewById(R.id.search_src_text) as EditText? editText?.setSelection(editText.text.length)
Client apps should not have to execute findViewById(R.id.search_src_text) to set the selection. Instead we should expose an API to set the position:
findViewById(R.id.search_src_text)
peliasSearchView.setCursorPosition(peliasSearchView.query.length)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
PeliasSearchView
should allow cursor position to be set without performing a lookup on theEditText
.Steps to Reproduce
Currently cursor position can be set with the following code:
Client apps should not have to execute
findViewById(R.id.search_src_text)
to set the selection. Instead we should expose an API to set the position:The text was updated successfully, but these errors were encountered: