TheOni
- Forum posts: 1
Jul 11, 2018, 11:20:13 PM via Website
Jul 11, 2018 11:20:13 PM via Website
I'm linking a PopupWindow to a TextView placed inside a ScrollView but when the view automatically scrolls to show the virtual keyboard the PopupWindow completely overlap the text box. If I manually scroll the view with the keyboard shown the PopupWindow moves automatically to the right place.
My actual code is the following:
popupBinding =
PasswordPopupBinding.inflate(LayoutInflater.from(getContext()));
View suggestionView = popupBinding.getRoot();
PopupWindow suggestionPopup = new PopupWindow();
suggestionPopup.setContentView(suggestionView);
binding.passwordTextView.setSuggestionPopup(suggestionPopup);
Is there a way to avoid the overlap?
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.