each time i enter the login screen and set focus on either editexts the soft keyboard is shown with a black rectangle on top..i haved tried using android:windowSoftInputMode="adjustPan" in manifest but with no expecting results..
Try using this in your EditText
android:inputType="textNoSuggestions|textUri"
finally...the issue was soft keyboard suggestions..i just set the android:inputType property of each of the editexts to "textNoSuggestions" and the black rectangle is not there anymore...
来源:https://stackoverflow.com/questions/33054255/black-rectangle-on-top-of-soft-keyboard-when-either-editexts-gain-focus